473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

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.BadImageFormatException: 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:
[BadImageFormatException: Retrieving the COM class factory for component
with CLSID {8DC27D48-F94C-434B-A509-C3E1A3E75B9E} failed due to the
following error: 800700b6.]
GetDynamicReport.GetDynamicReportHandler.SendXml(S tring xml, String
sessionId, String modifierString) +36

Parameters.ParameterHandler.InitializeBidProducts( HttpApplicationState
sesamApplication) +515

Parameters.ParameterHandler.InitializeSesamWebPara meters(HttpApplicationState
sesamApplication) +52
ASP.global_asax.Application_Start(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 15665
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
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...
3
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...
1
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...
4
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...
0
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...
3
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...
0
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)...
0
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.