((Epicor.Core.Session) ReceiptEntryForm.Session).AppServer
Joshua Giese
CTO
920.437.6400 Ext. 337
Site ID: 27450-E905700B2-SQL64
Joshua Giese
CTO
920.437.6400 Ext. 337
Site ID: 27450-E905700B2-SQL64
----- Original Message -----
From: "Dan Sirow" <dansirow@...>
To: vantage@yahoogroups.com
Sent: Thursday, May 30, 2013 12:35:05 PM
Subject: [Vantage] Re: Help with C#
Thanks for the help but I'm missing something.
I have the session dll(s) but still get the error.
How do I "cast form.session into epicor.core.session"?
Thanks again for the help !
--- In vantage@yahoogroups.com , Joshua Giese <jgiese@...> wrote:
>
> If that were the case it would give you a casting error of obj to str. The issue lies in the difference of loose casting of VB vs C#. You need the session dll and a cast on the session for C#
>
>
>
> Joshua Giese
>
> CTO
>
> 920.437.6400 Ext. 337
>
> Site ID: 27450-E905700B2-SQL64
>
> ----- Original Message -----
>
> From: "Joe Englert" <englertj@...>
> To: vantage@yahoogroups.com
> Sent: Thursday, May 30, 2013 11:45:44 AM
> Subject: RE: [Vantage] Help with C#
>
>
>
> I think you'll need to add ".ToString();" to the end of your C# line. Currently, it's trying to pass an AppServer into a String.
>
> From: vantage@yahoogroups.com [mailto: vantage@yahoogroups.com ] On Behalf Of Dan Sirow
> Sent: Thursday, May 30, 2013 12:33 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Help with C#
>
> I'm converting customizations from VB to C#. Having trouble with the following simple line that I used to determine if I'm on my test server as a file path is different:
>
> VB: Dim AppServer As String = ReceiptEntryForm.Session.AppServer
> C#: string AppServer = ReceiptEntryForm.Session.AppServer
>
> Getting 'object' does not contain a definition for 'AppServer"
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
[Non-text portions of this message have been removed]