-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: LovedJohnySmith
Message 3 in Discussion
Good Question Shakthi, You can achive this in two ways. one professional way
is Config file, another one is Tips(shortcut) from my experience for
empathizing concept. Config File(Professional Method): B4 tat, i would
like to explain how CLR takes when you call code from a shared assembly:
The CLR determines the correct version of the assembly to load by examining the
applicable configuration files. The CLR checks to see whether the
requested assembly has already been loaded. If it has, then the CLR binds to
the loaded copy and stops searching. The CLR then checks for the requested
assembly in the Global Assembly Cache (GAC). If the assembly is in the GAC,
then the CLR uses that copy and stops searching. The CLR next looks for a
<CodeBase> element in the application's configuration file. If one is present,
it checks that path for the assembly, loading it if found. If the
requested assembly hasn't been located yet, the CLR proceeds to search for it
as if it were a private assembly, following the rules from the previous
section.
the following one is used for this purpose, see the <bindredirect>, you can
toggle your Assemblies.
<?xml version="1.0"?>
<configuration>
<runtime>
<assemblyBinding
xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="MyCalledAssembly"
publicKeyToken="0556152c9715d60f" />
<bindingRedirect oldVersion="1.0.0.0"
newVersion="1.1.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Second Method(For empathize):
Step #1: first unregister shfusion.dll using RegSvr32 -u shfusion.dll.
Step #2: I hope, you installed your Two versions into GAC(for example.,
SampleTest.dll 1.0.0.1 and 1.0.0.2)
Step #3: from Your first application, you can add refernce SampleTest.dll from
the following path.
c:\windows\assembly\GAC\SampleTest\1.0.0.1__e177fbe137b531e5\SampleTest.dll
Note:
Under this path, you can find Two folders., say..
1.0.0.1__e177fbe137b531e5, 1.0.0.2__e177fbe137b531e5
Step #4: from Your Second application, you can add refernce SampleTest.dll from
the following path.
c:\windows\assembly\GAC\SampleTest\1.0.0.2__e177fbe137b531e5\SampleTest.dll
I hope, this method will help you to understand the Side-By-Side Execution
concept. but please prefer Config. file method for your development
Thanx,
Smith
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]