[RESOLVED] Unable to use C# COM component in Classic asp page
Hi All,
I have developed a C# COM component and registered successfully with regsvcs. I can use this component in VB6 and able to run the VB6 application with out any issues. But when I am trying to run with asp page it gives error as "An unhandled exception (006 asp 0177 server.createobject failed ~800401f3) occured in iisexpress.exe [7280]" at the Set obj = Server.CreateObject("CsharpLibrary.Class") in the asp page.
Note:
C# component developed in VS2013 and asp page also running in VS2013.
Re: Unable to use C# COM component in Classic asp page
Re: Unable to use C# COM component in Classic asp page
Quote:
I can use this component in VB6 and able to run the VB6 application with out any issues. But when I am trying to run with asp page it gives error
Was the web server the same server where you used it with VB6 successfully? Or were they two different machines?
-tg
Re: Unable to use C# COM component in Classic asp page
Quote:
Originally Posted by
techgnome
Was the web server the same server where you used it with VB6 successfully? Or were they two different machines?
-tg
Same machine only.
Re: Unable to use C# COM component in Classic asp page
Quote:
Originally Posted by
sarathi125
Same machine only.
:confused:
Re: Unable to use C# COM component in Classic asp page
Resolved by creating the COM component only by enabling the COMVisible property in the assembly information file and register for COM interop option. Then generated a strong name file. After that registered the dll with regasm /codebase /tlb "dll path". Able to access from classic asp page. Thank you all.