471,071 Members | 1,358 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

HELP:Using dlls with Visual 2005 Web Services?

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.

Apr 20 '06 #1
2 1075
q
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?

Apr 20 '06 #2
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.
"q" wrote:
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?

Apr 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ken Crismon | last post: by
1 post views Thread by sahilrekhi | last post: by
reply views Thread by leo001 | last post: by

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.