Click here to Skip to main content
15,884,836 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: .Net portal Pin
Paul Watson1-Apr-03 7:15
sitebuilderPaul Watson1-Apr-03 7:15 
GeneralRe: .Net portal Pin
Madhuri Mittal1-Apr-03 7:50
Madhuri Mittal1-Apr-03 7:50 
GeneralRe: .Net portal [clickety] Pin
Steve McLenithan1-Apr-03 7:44
Steve McLenithan1-Apr-03 7:44 
GeneralRe: .Net portal [clickety] Pin
Madhuri Mittal1-Apr-03 7:52
Madhuri Mittal1-Apr-03 7:52 
GeneralRe: .Net portal [clickety] Pin
Steve McLenithan1-Apr-03 7:54
Steve McLenithan1-Apr-03 7:54 
GeneralEventLogEntryType and EventLogTraceListener Pin
dvdmfr1-Apr-03 0:00
dvdmfr1-Apr-03 0:00 
GeneralCryptAcquireContext Pin
Raphael Amorim31-Mar-03 8:09
professionalRaphael Amorim31-Mar-03 8:09 
QuestionHow to implement a Remoting object which uses Activex control Pin
shokisingh31-Mar-03 0:17
shokisingh31-Mar-03 0:17 
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: 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
AnswerRe: How to implement a Remoting object which uses Activex control Pin
neroknights3-Apr-03 9:52
neroknights3-Apr-03 9:52 
Generalsunken vs. raised status bar border style Pin
Marc Clifton30-Mar-03 14:15
mvaMarc Clifton30-Mar-03 14:15 
GeneralRe: sunken vs. raised status bar border style Pin
Chris Jobson1-Apr-03 11:18
Chris Jobson1-Apr-03 11:18 
GeneralRe: sunken vs. raised status bar border style Pin
Marc Clifton1-Apr-03 13:49
mvaMarc Clifton1-Apr-03 13:49 
Generalflatstyle, buttons with bitmaps, and transparency Pin
Marc Clifton30-Mar-03 11:31
mvaMarc Clifton30-Mar-03 11:31 
GeneralRe: flatstyle, buttons with bitmaps, and transparency Pin
Chris Jobson1-Apr-03 11:30
Chris Jobson1-Apr-03 11:30 
GeneralRe: flatstyle, buttons with bitmaps, and transparency Pin
Marc Clifton1-Apr-03 13:51
mvaMarc Clifton1-Apr-03 13:51 
General.NET Equivelant to COM .EXE Server Pin
Jamie Nordmeyer28-Mar-03 7:32
Jamie Nordmeyer28-Mar-03 7:32 
GeneralRe: .NET Equivelant to COM .EXE Server Pin
Stephane Rodriguez.30-Mar-03 7:27
Stephane Rodriguez.30-Mar-03 7:27 
Generalreturning a structure from a XML Web Service Pin
Ray Cassick27-Mar-03 17:41
Ray Cassick27-Mar-03 17:41 
GeneralRe: returning a structure from a XML Web Service Pin
Ray Cassick27-Mar-03 18:29
Ray Cassick27-Mar-03 18:29 
GeneralCDATA? Pin
Paul Watson1-Apr-03 7:21
sitebuilderPaul Watson1-Apr-03 7:21 
GeneralRe: CDATA? Pin
Ray Cassick1-Apr-03 12:01
Ray Cassick1-Apr-03 12:01 
GeneralRe: CDATA? Pin
Paul Watson1-Apr-03 18:14
sitebuilderPaul Watson1-Apr-03 18:14 
GeneralRe: CDATA? Pin
Anonymous1-Apr-03 19:06
Anonymous1-Apr-03 19:06 
GeneralRe: CDATA? Pin
Ray Cassick1-Apr-03 19:08
Ray Cassick1-Apr-03 19:08 
GeneralTransparent GIF in .NET Pin
Paul Watson26-Mar-03 8:42
sitebuilderPaul Watson26-Mar-03 8:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.