L
Larry
I have an asp.net application (C#) that calls a web service that uses
several c++ dlls which are loaded with DllImport. I put these dlls in a
sub-directory off of the bin directory. For example, lets say the web
service dlls reside in c:\<myservice path>. The imported dlls are in
c:\<myservice path>\importeddlls. Therefore, the DllIImport declaration
looks like this:
[DllImport(@"importeddlls\import1.dll", EntryPont="functionName")]
This is working fine for production. But when I try to debug, it can't find
the dll. I did notice that the executing assembly location would be like:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\myservicevdir\7e128e00\3fa09952\assembly\dl3\48f477a3\2aa7278e_0628c901\import1.DLL
If it is looking there for the sub directory importeddlls, it won't find it
which would explain the error. If this is the case, how do I get it to find
the dll? I'm sure that I've done this previously when I've attached to a
service on a remote machine and I'm pretty sure that I've done it with the
service on my own machine, but now something has changed it the dll's can't
be found. I might have just changed a setting that messed it up, but not
sure.
Any ideas?
several c++ dlls which are loaded with DllImport. I put these dlls in a
sub-directory off of the bin directory. For example, lets say the web
service dlls reside in c:\<myservice path>. The imported dlls are in
c:\<myservice path>\importeddlls. Therefore, the DllIImport declaration
looks like this:
[DllImport(@"importeddlls\import1.dll", EntryPont="functionName")]
This is working fine for production. But when I try to debug, it can't find
the dll. I did notice that the executing assembly location would be like:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\myservicevdir\7e128e00\3fa09952\assembly\dl3\48f477a3\2aa7278e_0628c901\import1.DLL
If it is looking there for the sub directory importeddlls, it won't find it
which would explain the error. If this is the case, how do I get it to find
the dll? I'm sure that I've done this previously when I've attached to a
service on a remote machine and I'm pretty sure that I've done it with the
service on my own machine, but now something has changed it the dll's can't
be found. I might have just changed a setting that messed it up, but not
sure.
Any ideas?