Help with C# Blank Title 121242

Thanks Joshua
Changed to ((Epicor.Mfg.Core.Session) ReceiptEntryForm.Session).AppServer and compile error is gone - haven't tested yet

--- In vantage@yahoogroups.com, Joshua Giese <jgiese@...> wrote:
>
> ((Epicor.Core.Session) ReceiptEntryForm.Session).AppServer
>
>
>
> 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]
>
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"
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]
You need to bring session dll and cast form.session into epicor.core.session
On May 30, 2013 12:33 PM, "Dan Sirow" <dansirow@...> wrote:

> **
>
>
> 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]
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]
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]
>
((Epicor.Core.Session) ReceiptEntryForm.Session).AppServer



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]
Good point, I didn’t read thoroughly. Will probably need to append .ToString() for the next error. ☺

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Joshua Giese
Sent: Thursday, May 30, 2013 12:48 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Help with C#



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@...<mailto:englertj%40biotek.com>>
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.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%40yahoogroups.com> [mailto: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> ] On Behalf Of Dan Sirow
Sent: Thursday, May 30, 2013 12:33 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.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]