473,756 Members | 3,051 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Retrieving the COM class factory for a component failed


Hello!

We have written a GCryptoSvr.dll COM server in C++. Inside that resides
WebClient COM component. WebClient CLSID is
{8DC27D48-F94C-434B-A509-C3E1A3E75B9E}. When we are using that WebClient
COM component from C++ code it works just fine. However when we try to
use that same WebClient in the same machine with following C# code:

using GCRYPTOSVRLib;
WEBClient WC = new WEBClient();

we get error:

Server Error in '/SesamWeb' Application.
--------------------------------------------------------------------------------

Retrieving the COM class factory for component with CLSID
{8DC27D48-F94C-434B-A509-C3E1A3E75B9E} failed due to the following
error: 800700b6.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.BadImage FormatException : Retrieving the COM
class factory for component with CLSID
{8DC27D48-F94C-434B-A509-C3E1A3E75B9E} failed due to the following
error: 800700b6.

Source Error:

An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:
[BadImageFormatE xception: Retrieving the COM class factory for component
with CLSID {8DC27D48-F94C-434B-A509-C3E1A3E75B9E} failed due to the
following error: 800700b6.]
GetDynamicRepor t.GetDynamicRep ortHandler.Send Xml(String xml, String
sessionId, String modifierString) +36

Parameters.Para meterHandler.In itializeBidProd ucts(HttpApplic ationState
sesamApplicatio n) +515

Parameters.Para meterHandler.In itializeSesamWe bParameters(Htt pApplicationSta te
sesamApplicatio n) +52
ASP.global_asax .Application_St art(Object sender, EventArgs e) +11

Further it seems that this error occurs only in machines with Windows
2003 Server operating system.
We have tested this in several windows xp pro-operating systems and in
them everything seems to work just fine.
Then we have tried this in 2 machines with Windows 2003 Server operating
system and in both the error described above occurs.

Even in machines with Windows 2003 Server the WebClient works from c++
code but not from C#.
So it seems that the problem is between the interop between C# code and
COM-component.

Any suggestions???

Apr 13 '06 #1
2 15724
I am experiencing the same problem. I have a PeopleSoft Component
Interface com object that is registered on the server and work fine
with a windows app but not with ASP.net. I had this com object working
in asp.net 1.1 by registering it in the bin folder of the asp.net app
on the server. This no longer works in 2.0. On my development box (win
xp pro ) if i run the asp.net app through the new .net development
server it works when I switch it to run under IIS I get the same error
you are getting. We have run out of guesses here. I am hoping some one
will reply.

Thanks
Lost in COM hell

Apr 13 '06 #2
Hi Sakke,

From you description, I understand that you have a COM DLL(have you
registered it into COM+?), you will use it in a ASP.NET application. It
works in both C++ and C# on Windows XP, but on Windows 2003, it works in
C++ but not in C# application.
If I misunderstood, please feel free to let me know.

Here I assume that the C++ program are an Windows(Console ) Application.
Because Windows XP will run IIS 5.1 while Windows 2003 run IIS 6.0 which
will affect the ASP.NET application's behavior.

As Dave said, I think you may try to isolate the problem by calling the COM
from a C# windows application with the same code to see if that works.
If yes, to some extent we can make sure the different IIS behavior caused
the problem.

Please take a look at the link below to run the application under certain
account(we can test with a powerful account)
306158 How to implement impersonation in an ASP.NET application
http://support.microsoft.com/default...b;EN-US;306158

You may have a try and let me know the result.
If you still have any concern, please feel free to let me know.
I look forward to hearing from you.

Best regards,

Peter Huang

Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 14 '06 #3

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

Similar topics

0
3679
by: mihironline | last post by:
We have a scheduled job, which runs at every 5 min. As first step of this job, we are executing a stored proc. Inside stored proc, we have following line of code insert #exeResult EXEC master..xp_cmdshell @cmd -- where @cmd is an exe
3
16258
by: Harish | last post by:
I am buiding an application in ASP.Net 2.0 with C#. After installing corel wordperfect i am adding the reference into the application. Afetr adding reference interop.wordperfect.dll is added to the Bin folder. After creating the object of Wordperfect.Perfectscript i am opening the wordperfect file and then run the wordperfect macro. In development version the application is running without any error. If i publish the website on local...
1
9448
by: jimmyfo | last post by:
Hi, I recently wrote an ASP.Net web application in VS2005 and published (using VS2005 Publish feature) it to a relatively clean machine with ASP.Net 2.0 and MDAC 2.8 installed on it. However, when I try to create my SQL connection in the code-behind, I get the following error. I tried to register the DLL using regsvr32 but that errored out saying, "dllregisterserver entry point was not found". Any ideas? Retrieving the COM class factory...
4
10318
by: omrivm | last post by:
Hi, I have a problem with Outlook Redemption, every time I'm trying to create a new RDOAddressBook: Redemption.RDOAddressBook AB = new RDOAddressBook(); I get: "Retrieving the COM class factory for component with CLSID {...GUID...} failed due to the following error: 80040154." I tried to reregister the Redemption DLL but I still get this exception... My OS is win server 2003 sp1 it may be the problem?
0
2651
by: Olman Quesada | last post by:
Hi everybody, I'm trying to access a TLB in a VB.Net 2005 project. The TLB file is located under c:\windows\system32 directory. However, when a try to instanciate a variable whose type is declared in such TLB I got the following exception:
3
14509
by: =?Utf-8?B?Tmljaw==?= | last post by:
Hi all, i have a web application and one of the function is to generate a word document by button click. it works fine in debug mode when i run this web application. But after i deploy to my local IIS server, it always show this error when i click the button which trying to generate a word document. Error msg:
0
2967
by: Shailesh Patel | last post by:
Hi, I get the following error. Retrieving the COM class factory for component with CLSID {F84433FF-2369-4427-B6FB-3CBA67EDA7EB} failed due to the following error: 80040154 ASP.NET(VB.NET) website was working fine with COM components. But when I updated COM and referanced it again, I got error on website.
0
1495
by: zion | last post by:
Hello all, In my Asp.net application I use Dcom object to retrieve some data. To configure it I checked : "Enable COM Internet Services on this computer and" and add the user ASP.NET to COM security. At one of the test computers I get the error : "Retrieving the COM class factory for component with CLSID...failed due to the following error". Do I have to configre somthing else? What can be the problem? Thanks
3
2180
by: Bruno Vignola | last post by:
Good Morning all, I need to interoperate with the Calendar of MS Outlook 2003 (inserting, retrieving, listing events, etc. etc.) from an ASP.NET application; I first developed a simple windows application in C# and it worked fine, I added the OL reference and created the COM object with the following code:
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9273
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
9872
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...
0
9711
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...
1
7244
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
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
5303
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
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.