I’m new to EPICOR, but not new to C# coding. I’m having a hard time trying to move from the .NET world to EPICOR’s world of magical code behind the scenes… I’m simply trying to access the Session.CompanyID (or even the CallContextClientData.CurrentCompany) in a Customization to filter out some of our companys when I set EpiCombo default values. But when I test the code in the Customization window I get the error Error: CS0234 - The type or namespace name ‘Core’ does not exist in the namespace ‘Ice’ (are you missing an assembly reference?). I’ve seen several code examples on this site that use “Ice.Core.Session” so I’m a bit lost. I’m referencing Ice.Core in a using as shown here:
I could use some of you’re expert advice here… Thanks!
Welcome to the mysterious black-box world of Epicor coding …!
Not everything you’d think would be referenced is in fact referenced. You’ve got the right "using"s here, but you may need to go to Assembly Reference Manager (from the “Tools” menu) to actually make sure they’re in place to be used.
I normally add the Ice.Core.Session.dll in the Custom Reference, but there are instances where I added and it still says missing reference and then I have noticed that for some reason the dll added the namespace is lower case instead.
So I exported the Customisation and change the case in the XML file then reimport again.