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
  • No comments exist for this entry.
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.