473,480 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using COM dll in Webservice

Hi All,

I am trying to consume a COM dll into Web Service (written in C#). When I
call the Webmethod that uses the method of COM dll from Web application, It
gives me this error --- "System.IO.FileLoadException: A dynamic link library
(DLL) initialization routine failed". It does not give any eror when I use
other method of the web-service, it wroks just fine.
I have added reference to COM dll in to web-service project and its showing
the corresponding interop dll in the application folder.
Moreover,, I can use this COM dll without any problem in to C#.Net Windows
application.

What could be the problem ?? and what is the solution.
Please help. I am stuck up pretty badly in the project.

Thanks
Milind
Jul 24 '06 #1
2 1147
Does the ASPNET account have sufficient permissions to execute the COM
component?

"Milind" <Mi****@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
Hi All,

I am trying to consume a COM dll into Web Service (written in C#). When I
call the Webmethod that uses the method of COM dll from Web application,
It
gives me this error --- "System.IO.FileLoadException: A dynamic link
library
(DLL) initialization routine failed". It does not give any eror when I use
other method of the web-service, it wroks just fine.
I have added reference to COM dll in to web-service project and its
showing
the corresponding interop dll in the application folder.
Moreover,, I can use this COM dll without any problem in to C#.Net Windows
application.

What could be the problem ?? and what is the solution.
Please help. I am stuck up pretty badly in the project.

Thanks
Milind

Jul 24 '06 #2
Hi Ken,
Thanks for the reply.
But I am not sure how to do that? Please help me to set proper permission.

Thanks
Milind

Ken Cox [Microsoft MVP]" wrote:
Does the ASPNET account have sufficient permissions to execute the COM
component?

"Milind" <Mi****@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
Hi All,

I am trying to consume a COM dll into Web Service (written in C#). When I
call the Webmethod that uses the method of COM dll from Web application,
It
gives me this error --- "System.IO.FileLoadException: A dynamic link
library
(DLL) initialization routine failed". It does not give any eror when I use
other method of the web-service, it wroks just fine.
I have added reference to COM dll in to web-service project and its
showing
the corresponding interop dll in the application folder.
Moreover,, I can use this COM dll without any problem in to C#.Net Windows
application.

What could be the problem ?? and what is the solution.
Please help. I am stuck up pretty badly in the project.

Thanks
Milind


Jul 25 '06 #3

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

Similar topics

0
6173
by: Nalla | last post by:
Hi, I have a requirement to call webservices from my old C++ application.So first I tried with Vc++.net as follows.....There are 2 approach Dotnet frame work and soaptoolkit 3.0 I am not able to...
4
11147
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. ...
18
44631
by: A.M | last post by:
Hi, Is there any way to call a WSS web service method by using browser and see the XML result in browser as well? I have been told that there is query string syntax for calling...
5
3771
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
5
10374
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said...
0
1383
by: batista | last post by:
Hello all, I am using a webpage having a grid and im calling a webservice method(using webservice.htc) which after 5 seconds updates the content of the grid, uptil now everything is working...
0
1567
by: nhaughton | last post by:
I have writtten a webservice in .Net 1.1 using C#, that exposes an existing COM+ application as a webservice to remote web applications. The COM+ application works fine under Win 2000, XP amd...
0
2660
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
4
1958
by: =?Utf-8?B?ZmFpcnl2b2ljZQ==?= | last post by:
Hi, i create an asp.net webservice, then reference this webservice in another project in the same machine, it works well when using "localhost" to locate the webservice but fails when using the ip...
0
7041
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,...
0
7043
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,...
1
6737
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...
0
6921
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...
1
4776
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...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
179
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...

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.