PC Review


Reply
Thread Tools Rate Thread

<codeBase> element in machine.config

 
 
=?Utf-8?B?TWFyY2luIFBvbGV3c2tp?=
Guest
Posts: n/a
 
      18th May 2004
I am trying to redirect a dependant assembly using the following in my machine.config file

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Lib0" publicKeyToken="e3dc26dade2d75c8" /><codeBase version="1.1.1.1" href="file:///C:/Save/Code/C#/Test Folder/VersionRedirectTest/Lib0/bin/Release/Lib0.dll" /></dependentAssembly></assemblyBinding

Lib0 is strong named and the assembly version is set to "1.1.1.1", my test app (App1.exe) references the DLL and tries to call a function of a class in Lib0 but the framework fails to find Lib0.dll. The MSDN documentation says this is supposed to work both in machine.config and application configuration files. I have tested the same exact XML in my App1.exe.config and it finds the DLL fine. Why doesn't it work for machine.config

Thank you
Marcin Polewski
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Element 'ElephantTreeView' is not a known element. This can occur ifthere is a compilation error in the Web site, or the web.config file ismissing. Dave Microsoft C# .NET 4 7th Jul 2010 02:11 AM
how to change one element of machine.config into web.config? Dan Microsoft ASP .NET 4 18th Apr 2007 08:16 PM
machine.config - connectionManagement element =?Utf-8?B?U3VyZXNo?= Microsoft Dot NET 0 1st Apr 2005 05:25 PM
codeBase in machine.config vs web.config =?Utf-8?B?RGV2ZWxvcGVy?= Microsoft Dot NET Framework 2 4th Jun 2004 03:21 PM
Proxy element of machine.config and locally defined hosts David Swanson Microsoft Dot NET Framework 2 22nd Sep 2003 03:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:30 AM.