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

dotnet web services : HELP:Using dlls with Visual 2005 Web Services?


rino65
4/20/2006 12:40:03 AM
I have just converted a 2003 webservice to 2005. It used a dll created in C++
however now when running the web service I get the error that it could not
load the specified dll. It seems like a path issue. With the 2003 both the
Web Service Dll and the other dll resided in the bin directory.
Can anyone help
Thanks.


q
4/20/2006 2:14:02 PM
Are you talking about COM Interop? If so you will be to create the
wrapper...

gacutil /i Math.dll
regasm /tlb Math.dll

Or are we talking Component Services?

gacutil /i WebServiceLogic.dll
regsvcs /fc WebServiceLogic.dll

Or something else?
rino65
4/23/2006 3:06:01 AM
Hi
I am simply talking about a dll which I compile in C++ which is used by the
web sevice. and load the functions using
[DllImport("MyDll.dll")]
private static extern int GetValue(byte[]);

With V2003 when compiling the web service it created a dll in a bin dir and
I simply copied the other dll to the same bin dir and everything worked. Now
it seems like it is running the C# code , there is no web service dll (I dont
want to do Publish Web Site yet) and the only time I can get it to work is if
I make sure my other dll is in one of the systems path directories. Isnt
there another way I can tell the project that I need to run this dll as
well.? why doesnt it use the bin dir any more to find more dlls.


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