all groups > dotnet clr > july 2005 >
You're in the

dotnet clr

group:

assembly private path


assembly private path Marcus Cuda
7/22/2005 8:53:53 AM
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.
RE: assembly private path v-kevy NO[at]SPAM online.microsoft.com
7/23/2005 5:11:47 AM
Hi Marcus,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
RE: assembly private path v-jetan NO[at]SPAM online.microsoft.com (
7/25/2005 7:55:42 AM
Hi Marcus,

Thanks for your post.

Yes, I have found this as a known issue in our internal database.
Internally, this is due to IApplicationContext::PrefetchAppConfigFile does
not parse the app.config file. Our product team is currently working on
this issue. I think in RTM version of Whidbey, this issue may have been
fixed.

Thanks for your report.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button