Need help for COM running from Web application, but not form .EXE application

J

JeffQ888

Hi,


Can anybody help me to figure out my issue I am currently facing. The
issuse is we are building a .NET application on top of a third party
software. Since the software is based on old Microsoft technology ( I
mean COM), we are using .NET TlbImp utility to wrapper
COM dlls, then we can use them in a C# application. Anyway, for some
reason, those new .NET dlls ( I meam after warpping) can only work
correctly from a Web application. If calling them from a .NET exe
application (Windows Form app or Window Service app), those dlls will
not work. The error message is "mscorlib Exception has been thrown by
the target
of an invocation.". I am gussing those old COMs relying on Web
environment, but just can't fingure out how to solve it. It will
appreciated if anybody can give me some help.



Thanks,




Jeff
 
R

Richard Brown

The com objects are installed on the local machine (win forms) as well
as the iis box right?

Can you create a reference directly to the com object in your win form?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top