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

hi ans dis qstn. "what is d max size of query string. If it exceeds does it give error. if yes wt error it gvs, if no gv the reason" thnx in advance

3 Answers  


What kind of data we can store in viewstate?

0 Answers  


If we remove web.config or machine.config from the application then, is this application will works?

0 Answers  


Explain the concept of View Model in MVC?

0 Answers   B-Ways TecnoSoft,


How to store checkbox value in database in asp.net mvc? : Asp.Net MVC

0 Answers  






what is <location> tag?

2 Answers  


What?s the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?

1 Answers   Getit, Siebel, Visual Soft,


What is the request flow used for asp.net mvc framework? : asp.net mvc

0 Answers  


What are the events that happen when a client requests an asp.net page from iis server?

0 Answers  


What does the hotspot class in .net do?

0 Answers  


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

0 Answers  


Asp.net - How to find last error which occurred?

1 Answers   Abacus,


Categories