Register .NET COM library




If you have applications that need to create objects or call code from a .NET COM dll, then you will need to make sure you have registered the dll correctly. 

To do this type in the following from the command line:

regasm <FileToBeRegistered.dll> /codebase

I've just spent a few hours trying to work this is out, as I was working with a classic ASP website that made a 'Server.CreateObject(...)' call to a .NET COM assembly and was getting this error:

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/Path/Home.asp, line 203
800401f3


When I registered the .NET COM dll as above and placed the dll in the working folder of the website, this problem was resolved.  Take note, that the '/codebase' switch is important, because the website still didn't work until I used this switch - the reason for this, I do not know, so please speak up if you understand and can explain what the '/codebase' switch is actually doing.



 del.icio.us  Stumbleupon  Technorati  Digg 

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this entry.
Comments

  • 28 June 2010, 3:04 AM Wildblue wrote:
    Many people complain that they cannot create objects despite having applications but they fail to realize that in order for those applications to function properly, they need to register the dll and that too without an error which may sound confusing to some. However it’s not that confusing as you might think. It is in fact easy but you certainly need to know how to do the job effectively so that those applications don’t complain the next time!
    Reply to this
Leave a comment

 Enter the above security code (required)

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.