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 ports must be open for DCOM over a firewall? What is the purpose of Port 135?

0 Answers  


What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

2 Answers  


What is a reflection?

0 Answers  


How to identify host of my system? How to identify servername of my system? How to identify domainname of my system?

2 Answers  


What is the caspol.exe tool used for?

0 Answers  


Can you store dataset in viewstate?

7 Answers   Microsoft,


When a dropdownlist has been added by some records and it has been binded why it is not executing i'm facing this error pls help me ? if (is!pageposback) { arraylist books = new arraylist; books.add ("gone with the wind"); books.add ("rahulsriramprakash"); books.add ("vishal"); dropdowndisplay.datasource=books; dropdowndisplay.databind(); } The error is : 1) The dropdowndisplay does not exist.

5 Answers   Netsweeper,


What is gacutil.exe? Where do we store assemblies, Should sn.exe be used before gacutil.exe?

2 Answers   Accenture, Aptech,


benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

0 Answers  


What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?

0 Answers  


what is webservices ? and what is web server ?

1 Answers   Wipro,


What is asp.net mvc? : asp.net mvc

0 Answers  


Categories