Epicor version 10.1.600.30

This code:

string serv = this.Session.AppServerURL;

Returns:

Error: CS1061 - line 84 (340) - ‘Script’ does not contain a definition for ‘Session’ and no extension method ‘Session’ accepting a first argument of type ‘Script’ could be found (are you missing a using directive or an assembly

This code:

string serv = oTrans.Session.AppServer;

Returns:

Error: CS1061 - line 85 (341) - ‘object’ does not contain a definition for ‘AppServer’ and no extension method ‘AppServer’ accepting a first argument of type ‘object’ could be found (are you missing a using directive or an assembly

This code:

string server = ((Ice.Core.Session)oTrans.Session).AppServer;

Returns:

Error: CS0234 - line 86 (342) - The type or namespace name ‘Core’ does not exist in the namespace ‘Ice’ (are you missing an assembly reference?)

I am banging my head on my desk as I am typing this.

You are missing the session dll in your references.

When I add the statement:

using Ice.Core.Session;

it returns:

The type or namespace name ‘Core’ does not exist in the namespace ‘Ice’ (are you missing an assembly reference?)

I found it. I don’t remember ever having to add this dll before.