I have C#.net exe to which i add reference to third party dll's.
These third party dll's are strong named assemblies registered in GAC.
I compile my program with third party dll's(say version 7.0).
When i try to register my C#.net exe program in a machine which has the third party dll'S(say version anything above 7.0) registered in GAC.
If fails randomly in few machine machines stating "Unable to find the assembly version 7.0 Type not registered" again when i recompile my C# project with the dll version present in the target machine it runs successfuly..
Note: a. Let's say project is originally compiled with assembly version 7.0.4.82 & tried to run in 11.0.367.0. b. Test.Framework, Test.Core are the assemblies referenced.
Steps taken to resolve:
Tried assembly re-direction technique with the following app.config file.
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" >
<dependentAssembly>
<assemblyIdentity
name="Test.Framework"
publicKeyToken="ebf6b2ff4d0a08aa" culture ="neutral"/>
<bindingRedirect oldVersion="7.0.4.82"
newVersion="11.0.367.0" />
<publisherPolicy apply="no" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity
name="Test.Core"
publicKeyToken="ebf6b2ff4d0a08aa" culture ="neutral"/>
<bindingRedirect oldVersion="7.0.4.82"
newVersion="11.0.367.0" />
<publisherPolicy apply="no" />
</dependentAssembly>
</assemblyBinding>
Please suggest me some steps to resolve this.
Thanks in Advance.