This is a discussion on asp vs asp.net within the ASP and ASP.NET Programming forums, part of the Web Development category; ASP applications, components used by pages and deployed in this fashion were notoriously difficult to update or replace. Whenever the ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| ASP applications, components used by pages and deployed in this fashion were notoriously difficult to update or replace. Whenever the application was up and running, it held a reference to the component file so to replace that file, you had to shut down IIS, replace the file, and restart IIS. But in ASP.NET, The goals of ASP.NET was to eliminate the need to stop the running Web application whenever components of that application need to be updated or replaced that is, updating an application should be as simple as using xcopy to replace the components on the Web server with the new updated versions. To achieve this xcopy deployment capability, the designers of ASP.NET had to ensure two things: first, that the running application not hold a reference to the component file and second, that whenever the component file was replaced with a new version, that new version was picked up with any subsequent requests made to the application. Both of these goals are achieved by using the shadow copy mechanism provided by the Common Language Runtime (CLR). Shadow copying of assemblies is something you can configure when you create a new application domain in .NET. The AppDomainSetup class (used to initialize an AppDomain) exposes a Boolean property called ShadowCopyFiles and a string property called CachePath, and the AppDomain class exposes a method called SetShadowCopyPath() to enable shadow copying for a particular application domain. The Boolean property turns the mechanism on for a particular application domain, the CachePath specifies the base directory where the shadowed copies should be placed, and the SetShadowCopyPath() method specifies which directories should have shadow copying enabled. ASP.NET creates a distinct application domain for each application it hosts in its worker process and for each application domain, it enables shadow copying of all assemblies referenced in the /bin directory. Instead of loading assemblies directly from the /bin directory, the assembly loader physically copies the referenced assembly to a separate directory (also indicated in the configuration settings for that application domain) and loads it from there. This mechanism also keeps track of where the assembly came from, so if a new version of that assembly is ever placed in the original /bin directory, it will be recopied into the Noteshadow" directory and newly referenced from there. |
|
#2
| |||
| |||
| For the next generation of web development, ASP.NET has introduced a whole new programming model with the ability to combine server-side controls and data binding with a wide variety of web services. This language is compatible with all .NET languages and when compared to Classic ASP, the battle isn’t even close. Anyone familiar with this robust development tool will agree that ASP.NET is just another phase in the saga of Microsoft’s Active Server Pages. The best is yet to come because ASP will only improve as time goes on.
__________________ Software Outsourcing Company | Web design tampa | Software Maintenance | Software outsourcing to india | Oracle outsourcing Company |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Our Partners |