Vb6 DLL in ASP.NET Web Application

  • Thread starter Thread starter C.A. Amaya
  • Start date Start date
C

C.A. Amaya

Hi

I'm trying to use a VB6 DLL in an "ASP.NET Web Application" on VB.NET. But
there is something wrongL. I have the next error:


"
Retrieving the COM class factory for component with CLSID
{2A97D270-98F2-4012-80DA-CD2FDAF41784} failed due to the following error:
8007007e.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Retrieving the COM class
factory for component with CLSID {2A97D270-98F2-4012-80DA-CD2FDAF41784}
failed due to the following error: 8007007e.

Source Error:

.....
Line 72: g = New AlgoReseau.ClsGraphe

"

When I use the DLL in a "Windows Application" it works well.



If you have any idea or a document to solve my problem, please let me know.



Thanks.



AA
 
AA:

I don't know all of your specifics, so I will start with the fundamentals.
Has the COM dll been registered on the machine where the ASP.NET application
is running?

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


Hi

I'm trying to use a VB6 DLL in an "ASP.NET Web Application" on VB.NET. But
there is something wrongL. I have the next error:


"
Retrieving the COM class factory for component with CLSID
{2A97D270-98F2-4012-80DA-CD2FDAF41784} failed due to the following error:
8007007e.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Retrieving the COM class
factory for component with CLSID {2A97D270-98F2-4012-80DA-CD2FDAF41784}
failed due to the following error: 8007007e.

Source Error:

.....
Line 72: g = New AlgoReseau.ClsGraphe

"

When I use the DLL in a "Windows Application" it works well.



If you have any idea or a document to solve my problem, please let me know.



Thanks.



AA
 
Thanks David,

Yes, the DLL is registered (regsvr32 "....\...MyDll.dll"). I am testing in
a local server (ie localhost:8080). I have implemented some "Enum
statements" and I am able to use it in the ASP.NET Web Application. I can
use without problems the DLL in a normal Windows Net Application.

Any idea?

Thanks in advance
AA.
 
AA:

If you have not seen this, the following newsgroup post deals with an issue
similar to yours. While it does not give a solution, the user found a
workaround.

http://groups.google.com/group/micr...7007e+"asp.net"&rnum=3&hl=en#4a60ce8ce1fe5fed

I would be curious to know more specifics regarding your setup. For
example:

What O/S are you running?
What version of IIS are you running?
Where is the COM dll located (what directory)?
What version of the .NET Framework?
Have you tried re-registering the COM dll?

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


Thanks David,

Yes, the DLL is registered (regsvr32 "....\...MyDll.dll"). I am testing in
a local server (ie localhost:8080). I have implemented some "Enum
statements" and I am able to use it in the ASP.NET Web Application. I can
use without problems the DLL in a normal Windows Net Application.

Any idea?

Thanks in advance
AA.
 
Hi,

I found the problem



I'm using a virtual disk using "subst" command. I was compiling and
generating output files over that disk. When I changed to a real directory I
can use without problems the COM DLL.



Thanks for your Help



Ps

I 'am using XP, and IIS 5.
 
Back
Top