Is it possible to use two versions of assembly at the same
time?If possible explain with code?

Answers were Sorted based on User's Feedback



Is it possible to use two versions of assembly at the same time?If possible explain with code?..

Answer / sachin

Off course Krishna is right it is called as side by side
execution
<Configuration>
<runtime>
<assemblyIdentity name="ABCD" publicKeyToken="Sometoken"
culture="neutral" />

<bindingRedirect
oldVersion="1.0.0.0-99999.99999.99999.99999"
newVersion="1.0.1445.38584" />

<codeBase version="1.0.1445.38584" href="C:\Program
Files\TPA\ABCD.dll" />

</dependentAssembly>
</runtime>
<Configuration>

Is This Answer Correct ?    8 Yes 0 No

Is it possible to use two versions of assembly at the same time?If possible explain with code?..

Answer / krishna

It is possible. I think it is called as side by side
execution. But i don't konow the code. If any one know
please write.

Is This Answer Correct ?    3 Yes 0 No

Is it possible to use two versions of assembly at the same time?If possible explain with code?..

Answer / uma

OfCource sachine ,what u had written is correct,

if u adding System.Web.ui namespace, Namespace contain more
than one dll also,that Each dll has its own version and
they are now runnig in same time.

<add assembly........> is one dll with version xyz....

in the below config file there are 8 dll which has its own
versions runnig at the same time





<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.DataSetExtensions,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Xml.Linq, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions.Design,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Design, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is the main difference between a static page and a dynamic page?

2 Answers  


What is the use of response redirect in asp.net?

0 Answers  


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

0 Answers  


Explain different types of validators in asp.net?

0 Answers  


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

0 Answers   Siebel,






Are xaml file compiled or built on runtime?

0 Answers  


List some of the important session state modes of asp.net.

0 Answers  


4. How do you plan to achieve these goals?

7 Answers   Burger King, Latest, Swatz Oils,


what is the differance between native code & managed code?

5 Answers   Microsoft,


How to kill more than one session variables at a time

9 Answers   iSoft,


What is the equivalent of date() and time() in asp.net?

0 Answers  


How Many types of Page Load functions in asp.net

2 Answers  


Categories