Ask a Question related to ASP Components, Design and Development.
-
Karthey #1
Could not instantiate ActiveX control because the current thread is not in a si
Getting "Could not instantiate ActiveX control because
the current thread is not in a single-threaded
apartment. " error while using AxMSComLib control.
I am working on a Web Application. My soultion has 3
projects in it. One of the project is using AXMSComLib.
Since this is web application I count 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 help will be really appreciated.
Karthey Guest
-
User Control and ActiveX control
Now I am hosting a user control(an assembly in .dll) in IE. I want to know the difference between this kind of control and ActiveX control. thank... -
Thread: Control Overrides Page
Hello I would like to be able that my control overrides the complete live circle of the page. The event is trigger by a Query string value. I... -
HttpContext.Current.User vs. Thread.CurrentPrincipal
How are HttpConext.Current.User and Thread.CurrentPrincipal different? It seems that they can be set differently in different places. Why would... -
How to change the current thread current culture at run time.
I have created a new culture : Dim objCulture As New CultureInfo("he") //hebrew When I tried to assign it to the current thread. ... -
HttpContext is Nothing in new Thread inside a control
I start a parallel thread inside a control with the following code: Private Sub StartParallelProc(ByVal Command As SqlClient.SqlCommand) Dim T...



Reply With Quote

