473,804 Members | 3,349 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM object with CLSID is either not valid or not registered

I have a asp.net web application executing on a windows 2003 Server. I make a
reference in the project to a COM object and the Interop gets created
successfully. When the application executes I create a instance of the COM
object as such (c#):
XMLAPI.GMDataCl ass gdc;
gdc = new XMLAPI.GMDataCl ass();
I then receive the above mentioned error message. The strange thing is when
I do the same thing in a Windows Forms.net application it works fine!!
Can anyone help me here please?
Any suggestions are highly appreciated.

Nov 19 '05 #1
3 19478
To use COM, an app must have permission to read the System Registry.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Joel" <Jo**@discussio ns.microsoft.co m> wrote in message
news:7A******** *************** ***********@mic rosoft.com...
I have a asp.net web application executing on a windows 2003 Server. I make
a
reference in the project to a COM object and the Interop gets created
successfully. When the application executes I create a instance of the COM
object as such (c#):
XMLAPI.GMDataCl ass gdc;
gdc = new XMLAPI.GMDataCl ass();
I then receive the above mentioned error message. The strange thing is
when
I do the same thing in a Windows Forms.net application it works fine!!
Can anyone help me here please?
Any suggestions are highly appreciated.

Nov 19 '05 #2
Kevin,

When I debug/execute the application I am logged on as Administrator of the
machine and if the app requires access to the registry does that mean I need
to give one of the asp.net user accounts on the system access rights to the
registry and if so how do I do that?

Thanks,
Joel

"Kevin Spencer" wrote:
To use COM, an app must have permission to read the System Registry.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Joel" <Jo**@discussio ns.microsoft.co m> wrote in message
news:7A******** *************** ***********@mic rosoft.com...
I have a asp.net web application executing on a windows 2003 Server. I make
a
reference in the project to a COM object and the Interop gets created
successfully. When the application executes I create a instance of the COM
object as such (c#):
XMLAPI.GMDataCl ass gdc;
gdc = new XMLAPI.GMDataCl ass();
I then receive the above mentioned error message. The strange thing is
when
I do the same thing in a Windows Forms.net application it works fine!!
Can anyone help me here please?
Any suggestions are highly appreciated.


Nov 19 '05 #3
Well I finally found a solution to the problem. I will share my findings as
many times you look for people who had similar issues than yourself and they
never share their solution after they solved it.

The issue here is that I can access a component through my winforms app but
not through my asp.net app. The program that installed the component did not
register the component in the DCOM or COM+ sections of my Windows 2003 Server
but only registered its own main executable in the DCOM section. When I then
went and made a reference to the main executable in my asp.net app instead of
the dll I wanted it worked fine. So the conclusion here is to not forget to
go look at what is actually available in the COM+ and DCOM sections of the
machine which you are hosting/developing on.

Hope this helps someone in future.

Until we meet again.

Joel
"Joel" wrote:
Kevin,

When I debug/execute the application I am logged on as Administrator of the
machine and if the app requires access to the registry does that mean I need
to give one of the asp.net user accounts on the system access rights to the
registry and if so how do I do that?

Thanks,
Joel

"Kevin Spencer" wrote:
To use COM, an app must have permission to read the System Registry.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Joel" <Jo**@discussio ns.microsoft.co m> wrote in message
news:7A******** *************** ***********@mic rosoft.com...
I have a asp.net web application executing on a windows 2003 Server. I make
a
reference in the project to a COM object and the Interop gets created
successfully. When the application executes I create a instance of the COM
object as such (c#):
XMLAPI.GMDataCl ass gdc;
gdc = new XMLAPI.GMDataCl ass();
I then receive the above mentioned error message. The strange thing is
when
I do the same thing in a Windows Forms.net application it works fine!!
Can anyone help me here please?
Any suggestions are highly appreciated.


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
9535
by: Lady_A | last post by:
I have created a basic COM in-proc server and a client. The registration of my server succeeds according to regsvr32. I can see it in the registry, having the ProgID and the InProcServer32 entries. I can't seem to find it in the OLE/COM Viewer unless I specifically open the tlb file. Opening the dll file by the same method displays an error loading the type lib, although the dialog box specifies that I can put in a dll file.
2
2957
by: anand | last post by:
Hi, We have developed a web application, which uses Interop.Word.dll to read from word documents and write to word documents. Problem is that our client is persisting that we develop the solution in such a way that the app can be deployed in a machine where Office is not installed! I read that Word dlls are not redistributables. We tried to create a Setup (Installer), include the dll dependencies Interop.Word.dll,
0
1123
by: VB Programmer | last post by:
I tried to make a VB.NET version of this: http://neevia.com/ex036csharp.htm I keep getting this error: Server Error in '/ProposalGenerator' Application. -------------------------------------------------------------------------------- COM object with CLSID {DEE34F1A-B8A8-469F-8475-BB5FAF943285} is either not valid or not registered. Description: An unhandled exception occurred during the execution of the
4
1482
by: c.verma | last post by:
I am stuck on one silly thing.It is just about calling unmanaged code in the C# win/web application. This is what I did: 1) Created a VB dll xyz.dll. 2) Since this is unmanaged dll, I used tlbimp.exe file to create a managed dll that I am using in my reference of C# project. tlbimp d:\xyz.dll /out:D:\abc.dll 3) I inculde abc.dll in my C# project and used the following code to
1
1351
by: Daryl Zavier | last post by:
Hi Guys, Paradon my ignorance on this issue. I've done up a simple VB.net windows application which when executed from a client PC, is suppose to execute a DTS job on my server. When I implemented and executed the application to my client, I get this error message "COM object with CLSID {10020200-EB1C-11CF-AE6E-00AA004A34D5} is either not valid or not registered."
2
1082
by: Juan Dent | last post by:
Hi, I have a client application in unmanaged C++ that currenly interacts with a COM object. Yet, I need this object to be returned by a Web Service and I was wondering whether: 1) the COM object needs to be registered 2) aif there are any attributes that could identify the object returned by the Web Service as being a particular ProgId or CLSID Any ideas?
11
5393
Frinavale
by: Frinavale | last post by:
Hi guys, I've created a VB.Net project and have compiled it, run it, tested it on a machine that has a 32bit processor. I am now trying to move this project onto a 64bit processor server that is running IIS6. The project works wonderfully until it tries to access a DLL that is essential to the project. At that time I am getting the following error: Exception: Retrieving the COM class factory for component with CLSID{...} I have...
3
5619
by: abhimanyu | last post by:
I have a method Marshal.IsComObject(...) that returns TRUE if an object is a COM object. I have an object of Excel.Worksheet that I released using Marshal.ReleaseComObject(...). I want to iterate over a collection of Excel.Worksheet and find out which is disposed. Currently the workaround for me (bad one) is try { string name = worksheet.Name;
1
1848
by: mthorpe | last post by:
I am pretty new to all of this and am working on a macro to transfer some data. I am using "Select Case" and when it reaches .Paramater.Append prm(i) is throws the "Invalid Object error". I don't even know where to start trouble shooting this? I'm a novice and need some help. Thanks! If Len(sSQL) > 0 Then Set cmd = New ADODB.Command With cmd .ActiveConnection = con .CommandText = sSQL ...
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10567
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.