Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / September 2004

Tip: Looking for answers? Try searching our database.

Problem with a COM+ Application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alessio Brizi - 02 Sep 2004 22:52 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
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.