Saturday, March 31, 2012

Where do I place the dll?

I have a legacy dll built in C++ 6.0 (not a com dll, just a plain dll without
a type library). I am using Interop Services to call this dll from an aspx.cs
page ([DLLImport]). However when I place the dll in the bin folder I get "dll
not found". When I place it in Windows/System32 the webpage just spins and
doesn't return any result. Obviously the dll is not getting loaded. Where do
I need to place the dll?

--
Message posted via http://www.dotnetmonster.comsystem32 should be fine IMO. For a test you could also try with the full
path to the DLL.

I would try with a Windows test application. IMO it's rather some problem
caused by the execution context (rights, no user profile etc...).

--
Patrice

"Andy Sutorius via DotNetMonster.com" <u9025@.uwe> a crit dans le message de
news:5a7ee7192cf72@.uwe...
> I have a legacy dll built in C++ 6.0 (not a com dll, just a plain dll
without
> a type library). I am using Interop Services to call this dll from an
aspx.cs
> page ([DLLImport]). However when I place the dll in the bin folder I get
"dll
> not found". When I place it in Windows/System32 the webpage just spins and
> doesn't return any result. Obviously the dll is not getting loaded. Where
do
> I need to place the dll?
> --
> Message posted via http://www.dotnetmonster.com
I will try the full path.

I already tried with a Windows test and it ran perfectly. With this test the
dll was in the root folder of the .exe that I fired off.

Patrice wrote:
>system32 should be fine IMO. For a test you could also try with the full
>path to the DLL.
>I would try with a Windows test application. IMO it's rather some problem
>caused by the execution context (rights, no user profile etc...).
>> I have a legacy dll built in C++ 6.0 (not a com dll, just a plain dll without
>> a type library). I am using Interop Services to call this dll from an aspx.cs
>> page ([DLLImport]). However when I place the dll in the bin folder I get "dll
>> not found". When I place it in Windows/System32 the webpage just spins and
>> doesn't return any result. Obviously the dll is not getting loaded. Where do
>> I need to place the dll?

--
Message posted via http://www.dotnetmonster.com
I will try the full path.

I already tried with a Windows test and it ran perfectly. With this test the
dll was in the root folder of the .exe that I fired off.

Patrice wrote:
>system32 should be fine IMO. For a test you could also try with the full
>path to the DLL.
>I would try with a Windows test application. IMO it's rather some problem
>caused by the execution context (rights, no user profile etc...).
>> I have a legacy dll built in C++ 6.0 (not a com dll, just a plain dll without
>> a type library). I am using Interop Services to call this dll from an aspx.cs
>> page ([DLLImport]). However when I place the dll in the bin folder I get "dll
>> not found". When I place it in Windows/System32 the webpage just spins and
>> doesn't return any result. Obviously the dll is not getting loaded. Where do
>> I need to place the dll?

--
Message posted via http://www.dotnetmonster.com

0 comments:

Post a Comment