S
Sakke
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(String xml, String
sessionId, String modifierString) +36
Parameters.ParameterHandler.InitializeBidProducts(HttpApplicationState
sesamApplication) +515
Parameters.ParameterHandler.InitializeSesamWebParameters(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???
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(String xml, String
sessionId, String modifierString) +36
Parameters.ParameterHandler.InitializeBidProducts(HttpApplicationState
sesamApplication) +515
Parameters.ParameterHandler.InitializeSesamWebParameters(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???