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] Ken Cox [Microsoft MVP]" wrote:
> Does the ASPNET account have sufficient permissions to execute the COM
> component?
>
> "Milind" <Milind@discussions.microsoft.com> wrote in message
> news:100614D1-D911-4DB4-B74D-F2D287D23A0C@microsoft.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
>
>