Click here to Skip to main content
15,999,026 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I am using vb6 dll in my Asp.net 4.0 application,it works fine while running in VS mode but if i host the application into IIS it doesn't work.

Even though i did all stuff like registering in sysWoW64 as regsvr32.

Kindly anyone give the idea for this.


regards,
kannappan
Posted
Comments
Maciej Los 17-Mar-15 9:21am    
In a few words: You can't!
anbucode01 17-Mar-15 9:54am    
It works in the VS then why cant we host in IIS?

A VB6 dll is going to be a 32-bit file. You need to configure your AppPool to run as a 32-bit process.

In IIS, under "Application Pools", select the application pool that your application is using. Right-click and select "Advanced Settings", and make sure that the "Enable 32-bit Applications" property is set to "True".
 
Share this answer
 
Comments
Maciej Los 17-Mar-15 15:33pm    
Good suggestion!
Strictly saying you can't use vb6 dll in your ASP.NET project unless it's COM dll.

See:
ASP.NET using VB6 code[^]
Calling COM Components from .NET Clients[^]
Comparing ASP.NET 2.0 and Visual Basic 6 WebClasses[^]
 
Share this answer
 
Comments
anbucode01 18-Mar-15 1:35am    
as per your reference i made the dll to COM type, now i get the error like this
Retrieving the COM class factory for component with CLSID {85CCBE9A-6200-4D2A-8D5A-2E595F2C144B} failed due to the following error: 8007007e The specified module could not be found. (Exception from HRESULT: 0x8007007E).
Maciej Los 18-Mar-15 2:39am    
A dll must expose COM. If it does not expose COM, it's impossible to use it. If you're the owner of dll code, i suggest you to re-write dll using .NET language.
The error message says that your dll (probably) does not expose COM. See: this thread.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900