Hello All,
I am developing web application with help of solid Edge Dlls. My Web application is working fine in my local system , i hosted this web application into IIS.
But whenever trying to connect a running instance of Solid Edge from the other system then it is giving below Error.
Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE))
application = (SolidEdgeFramework.Application) Marshal.GetActiveObject("SolidEdge.Application");
Note: This is Web application not Window or Desktop Application.
Please suggest me.
Santhosh Kumar Kannappan SivaPosted Nov 21, 2014, 4:41 AM
using Marshal.GetActiveObject("YourapplicationName.Application") which will work fine in your local system but not when you publish.This at time may not create instance in ROT.
Instead of Marshal.GetActiveObject("YourapplicationName.Application" you can use the following
code:
YourapplicationName.Application myApp = null;
Type acType = Type.GetTypeFromProgID("YourapplicationName.Application");
myApp = (YourapplicationName.Application)Activator.CreateInstance(acType, true);
----------------------------------------------------------------------------------------------------------
Santhosh Kumar
Innospire Systems