Assemblies version problem while calling one application from other

Hi All,

I would appreciate the comments and suggestions on it.

I am trying to call one C# application say 'Addon' application from other C# application say 'Main' application, I am facing problem of assembly version issue because both application are using common assembly say common.dll. And Addon application is compiled with old version of this common.dll and freezed while main application is under maintainace for adding new features. Hence some additional features are also added in common.dll so I have increased its version.
so I am facing problem of version incapatibility, so to fix this issue, I have to recompile Addon application with the newer version of common.dll. Is it the only way to resolve this issue ? or there is any other way please let me know if anyone is having the solution . Also I don't want to keep common.dll in GAC.
So how can I resolve this issue without putting it into GAC.

Regards,
Jeet

[949 byte] By [Jeetu] at [2007-12-16]
# 1
Hi,

You can try using the <codeBase> tag to point to a particular assembly:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfCodeBase.asp

<codeBase> does not require your assembly to be in GAC, but the assembly needs to be strongnamed.

Regards,
Vikram

Vikram at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...
# 2
Hello Mr. Vikram,
Thanks for giving valuable reply.
But I am sorry I could not implement your suggestions yet because I need more help on StrongName, this concept is new to me.
Can you please give me detail on it means What it is and any example of it.
As you told me about <codeBase>, can I put <codeBase> in app.config ?
If not disturbing you, can you reply me please.
Thank you.

Best Regards
Jeet Rajput

Jeetu at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...
# 3
Hi Jeet,

You can add the codeBase tag in your app.config file.

Go through the following links to know what is a Strong Name and to create a key and then to sign your assembly using the key generated:
1.]Strong Named Assemblies
2.]Creating a Key
3.]Example and steps on Strongnaming a DLL

Regards,
Vikram

Vikram at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...

.NET Development

Site Classified