Results 1 to 6 of 6

Thread: [RESOLVED] Unable to use C# COM component in Classic asp page

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Resolved [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.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Re: Unable to use C# COM component in Classic asp page

    Any update please?

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Unable to use C# COM component in Classic asp page

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Re: Unable to use C# COM component in Classic asp page

    Quote Originally Posted by techgnome View Post
    Was the web server the same server where you used it with VB6 successfully? Or were they two different machines?

    -tg
    Same machine only.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Re: Unable to use C# COM component in Classic asp page

    Quote Originally Posted by sarathi125 View Post
    Same machine only.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width