I had problems undersanting the last two sections : "Configuring .NET applications" and "Versioning" .
Using the samples : "SharedDemo" and "Client", produce many errors: "file not found", "bad image file", etc, etc
Problem 1: "SharedDemo" access to file : "Quotes.txt" : that produce error: "file not found"\
This must be resolved getting appropiate permissions.
Problem 2: using key file ".pfx" produces error :
ALINK: error AL1019: Metadata failure while creating assembly -- Bad Version of provider
Surfing webs : I found this, from MIcrosoft:
http://connect.microsoft.com/VisualStudio/feedback/details/536016/assembly-linker-does-not-support-pfx-cryptographic-keys-al1019
Assembly Linker does not support
PFX Cryptographic Keys - AL1019 -- date: 2/24/2010
so: with : "AL.exe" : must be used a : ".snk" file , not a ".pfx" file !!
Finally, thinking that : it's better to resolve and understand : "one problem at a time" :
I simplify creating :
1. a project : "myDLL" : that just return a string, and
2. a project : "myDLLtest" : that consumes it
3. an : "aplication configuration file" : "myDLLtest.exe.config"
4. a : "publisher policy assembly file"
I run : "myDLLtest.exe", using different combinations of : assemblies and "configuration files"
Then : all began to work and be understood
And now I know : --How to use element : "<codebase>"--
1. It can be used in : "application configuration files"
2. It can be used in : "publisher policy files" :
creating : the "publisher policy assembly file" : with : "AL.exe" : with a : ".snk" key file
( in HELP I read that : "... <codebase>
only can be used in : "machine configuration files" and "publisher policy files" :
this is not true " )
3. this works fine : <codeBase version="1.1.1.1" href="file:///L:/tmp/1.1.1.1/SharedDemo.dll" />
4. this works fine : <codeBase version="2.0.0.0" href="http://192.168.1.210/myDLL.dll" />
4. this works fine : <codeBase version="2.0.0.0" href="http://192.168.1.210/bin/myDLL.dll" />
5. but : in any case : the "web" : can't be : a "virtual directory" :
"myDLL.dll" :
must be in : "C:\inetpub\wwwroot\ : or : in some subdirectory below.
I hope this may be useful.
I'll appreciate any correction, sugestion, or question.
E.