Groups | Blog | Home
all groups > dotnet web services > july 2006 >

dotnet web services : Using COM dll in Webservice


Milind
7/24/2006 6:37:02 AM
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
Ken Cox [Microsoft MVP]
7/24/2006 6:33:12 PM
Does the ASPNET account have sufficient permissions to execute the COM
component?

[quoted text, click to view]

Milind
7/25/2006 3:31:02 AM
Hi Ken,
Thanks for the reply.
But I am not sure how to do that? Please help me to set proper permission.

Thanks
Milind

[quoted text, click to view]
AddThis Social Bookmark Button