Could not instantiate ActiveX control because the
I am working on a Web Application using ASP& C#.NET.
My Project Soultion has 3 projects in it.
One of the web page calls other project which uses the AXMSComLib(MSCom32.OCX)
Since this is web application I could not find any Main() method to add [STAThread].
I did add before the instance of the object AxMSComLib: "Thread.CurrentThread.ApartmentState = ApartmentState.STA;"
Its not working. Any suggestion?:)
|