Thanks in advance to those person who'll try to answer me.
I have a problem with a COM dll that I must use for a Web Application
written in ASP.NET and C#. My server is IIS 6 on Windows Server 2003.
I tried to register the DLL with regsvr32, and I added it to the reference
of the project in Visual Studio choosing it from the COM tab, but when I
instantiate the class:
myClass c = new myClass();
I receive an error for the CLSID not valid or not registered.
I also tried to register it as a COM+ application creating a new application
and adding the dll as the unique component. I obtained an error of acces
denied (although I used the network service account for the COM +
application) so I tried to not enforce security checks to give acces to
everyone.
Now I receive a "Class not registered" error!!!
Wich class is not registered? The one with the CLSID before or what else?
How can I register it?
Did I forgot something? Some IIS setting?
Can you help me?
Thanks a lot!
Alessio
Patrick Steele [MVP] - 03 Sep 2004 16:55 GMT
> Thanks in advance to those person who'll try to answer me.
> I have a problem with a COM dll that I must use for a Web Application
[quoted text clipped - 4 lines]
> myClass c = new myClass();
> I receive an error for the CLSID not valid or not registered.
Registering .NET objects as COM objects is done via "REGASM". To
register as a COM+ object, you need to use regsvcs.exe. Also, this
might help out too:
http://www.15seconds.com/issue/040721.htm

Signature
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele