Hi, I have a major problem in .Net Remoting.. I want to implement a ActiveX Control on Server Side but there seems no way out. Here is how i tried to implement it. 1) Created a form which containd the activex control 2) Implemented by a Class object inheriting System.MarshalByRefObject. 3) Created a instance of form in the class, like: public class Class1 : System.MarshalByRefObject { FormControl fc = new FormControl(); } and then tried to call it's member function on constructor. 4) on calling this object , from a server component implementing Remoting, it works fine. 5) but the problem comes now.. On implementing the client, a exception is thrown: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Threading.ThreadStateExc eption: Could not instantiate ActiveX control '11111111-7ba3-1111-9623-1111111 bd0' because the current thread is not in a single-threaded apartment. Please help me out.:confused::confused::confused::confused: Ashok Singh Real Programmer's do not comment their code, if it is hard to write then it should hard to understand
shokisingh
Posts
-
How to implement a Remoting object which uses Activex control -
Post data to different site from server-sideI want to send data to a different site using "post" method. if anyone has any idea about it please let me know ASAP. It's urgent.....thanks in advance:confused: Ashok Singh Real Programmer's do not comment their code, if it is hard to write then it should hard to understand
-
Image into MS-Access DatabaseCan anybody help in : 1) inserting a bitmap image into ms-access database 2) setting a picture box with a image from the database. Please help me, i have been hitting on this for 2 days.:confused: Ashok Singh Real Programmer's do not comment their code, if it is hard to write then it should hard to understand
-
VS.NET VC7 generated code, where is it?if u want to just change the style do this: m_cListCtrl.ModifyStyle(0, LVS_REPORT); in the constuctor or initdialog();: Ashok Singh
-
drag drop a bitmapany one who can help me about dragndrop a bitmap in vc++:-O :-O if anyone has any information regarding it, please mail me if u can, that would be a lot of help, thanks in advance Ashok Singh
-
change edit font colorif u r using a DC to output u'r text, then u can change u'r font color by setting DC's SetTextColor property:omg: Ashok Singh
-
has anybody have any idea about dragdrop a bitmapi want to know if there is any way to drag and drop a bitmap around a window, if at all there is a way, can somebody help me out:confused: Ashok Singh
-
What's Better VC++6.0 or VC++.NetI just wanted to know from all those gurus of c++, thier opinion about the freedom one gets from migrating from vc6 to vc7. Does it always help to get into newer version if like the old one better.:confused: I have to check out other people's suggestion before i take yet another dive into a new IDE, so please help me. Ashok Singh