Session initialization stuck, using interop dlls

Hi All,

I am facing some issues while initializing the session of Sage 300 Interop DLL to connect with Sage 300 to import the data. here is the code. It runs sometime fine, but sometime I needs to restart the machine.

this._mSession = new Session();
this._mSession.Init("", "XX", "XZ1000", "62A");

Can anyone please help on this? or give me some hint to resolve the issue, It very urgent. I really appreciate for your response.

Thanks you in Advance for your help.

SF