dotnet clr:
Hi,
I am using .NET 2.0 beta2 and I am having a problem setting the private path for assembly probing. I want to put all 3rd
party dlls into a subdirectory named lib. I created an app config file (see below) and pointed the private path
attribute to the lib directory. When I start up the app, I get a "file not found" error. FUSLOGVW.exe (see output below)
shows that the runtime could not locate Janus.Windows.UI.v2.dll, even though it is in the lib directory. Since FUSLOGVW
shows that Initial PrivatePath = NULL, it seems that the app.config setting is being ignored.
If I put Janus.Windows.UI.v2.dll into the same directory as the exe, it works.
Anyone have an idea of what I am doing wrong?
Thanks,
Marcus
app directory:
ImpluseResponseFunctions.exe
ImpluseResponseFunctions.exe.config
lib
Janus.Windows.UI.v2.dll
ImpluseResponseFunctions.exe.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas=microsoft-com:asm.v1">
<probing privatePath="lib"/>
</assemblyBinding>
</runtime>
</configuration>
*** Assembly Binder Log Entry (7/21/2005 @ 6:31:03 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\mscorwks.dll
Running under executable C:\Documents and Settings\marcus\Desktop\build\ImpluseResponseFunctions.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = VERUCA\marcus
LOG: DisplayName = Janus.Windows.UI.v2, Version=2.0.1167.0, Culture=neutral, PublicKeyToken=21d5517571b185bf
(Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/marcus/Desktop/build/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = ImpluseResponseFunctions.exe
Calling assembly : ImpluseResponseFunctions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind is in default load context.
LOG: Using application configuration file: C:\Documents and
Settings\marcus\Desktop\build\ImpluseResponseFunctions.exe.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\config\machine.config.
LOG: Post-policy reference: Janus.Windows.UI.v2, Version=2.0.1167.0, Culture=neutral, PublicKeyToken=21d5517571b185bf
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Documents and Settings/marcus/Desktop/build/Janus.Windows.UI.v2.DLL.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/marcus/Desktop/build/Janus.Windows.UI.v2/Janus.Windows.UI.v2.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/marcus/Desktop/build/Janus.Windows.UI.v2.EXE.
LOG: Attempting download of new URL file:///C:/Documents and
Settings/marcus/Desktop/build/Janus.Windows.UI.v2/Janus.Windows.UI.v2.EXE.