Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > ASP.NET Forum & Tutorial


Administration and Management


Reply
Views: 1973  
Thread Tools Rate Thread
  #1  
Old 05-30-2009, 09:51 AM
bholus7
Guest
 
Posts: n/a
Default Administration and Management

Administration and Management


One of the key goals of ASP.NET 2.0 is to ease the effort required to deploy, manage, and operate ASP.NET web sites. To this end, ASP.NET 2.0 features a new Configuration Management API that enables users to programmatically build programs or scripts that create, read, and update configuration files such as Web.config and machine.config.



In addition, there is a new comprehensive admin tool that plugs into the existing IIS Administration MMC, enabling an administrator to graphically read or change any setting within the configuration files.



ASP.NET 2.0 also provides new health-monitoring support to enable administrators to be automatically notified when an application on a server starts to experience problems. New tracing features will enable administrators to capture runtime and request data from a production server to better diagnose issues.




Visual Studio 2005 also ships with a new web-based tool that provides a very easy way to administer an ASP.NET web site. You can access this by clicking Website?ASP.NET Configuration in Visual Studio 2005.



This web-based tool wraps much of the Management API, thereby providing an easy and effective way to remotely administer a site. Figure 1-4 shows the ASP.NET Web Application Administration tool in action.





As you can see from Figure 1-4, it provides a simple web interface that allows configuration of all aspects of a site. The interface is designed to be customized, so corporations and hosts can give it a company look.

Reply With Quote
  #2  
Old 05-30-2009, 09:52 AM
bholus7
Guest
 
Posts: n/a
Default Precompilation

Precompilation

One of the significant improvements in ASP.NET 2.0 is the capability to request a web form (.aspx file) from a browser without having to compile the code even once. When the page is first requested, ASP.NET compiles the page on the fly, dynamically generating the assembly.

This makes it possible for you to resort to the “Just Hit Save” programming model (similar to ASP), wherein you just develop and test the page without having to compile it.

After the initial compilation, the compiled page is cached, which is used to satisfy the subsequent requests for the same page. Although this approach is flexible, it does result in a performance hit, especially when the page is requested for the first time, since ASP.NET requires a bit of extra time to compile the code.

You can avoid this overhead by leveraging a new feature known as precompilation, using which you can compile an ASP.NET web site before making the web site available to users.

Precompilation also allows you to catch all the compilation errors before deploying the application onto the production servers. ASP.NET 2.0 provides the following two options for precompiling a site:



In-place precompilation
: When you perform in-place precompilation, all ASP.NET files are compiled and stored in a special folder. The precompilation process follows the same logic that ASP.NET uses for dynamic compilation, also taking into consideration the dependencies between files.

During precompilation, the compiler creates assemblies for all executable output and places them in a special folder. After the compiled output is created, ASP.NET fulfills requests for pages using the assemblies contained in this folder. One of the important advantages of precompilation is the ability to check the web site for compilation errors.

For example, to precompile a web site named Chapter1, enter the following command at the .NET Framework 2.0 SDK command prompt:

aspnet_compiler –v /myprojects/wrox/chapter1
The above command will precompile the web site and display the compilation errors in the browser, if there are any.



Precompiling a site for deployment
: Using this option, you can create a special deployable output of your web application that can be deployed to production servers. Once the output is created, you can deploy the output, using various mechanisms such as XCOPY, FTP, or Windows installers, onto the production servers.

To precompile a web site for deployment, use the same aspnet_compiler utility and specify the target path as an additional argument:
aspnet_compiler –v /myprojects/wrox/chapter1 C:\Chapter1\Output

This type of precompilation enables applications to be deployed without any source being stored on the server (even the content of .aspx files is removed as part of the precompilation), further protecting your intellectual property. This capability can be very useful in web site hosting scenarios.
Reply With Quote
Reply

New topics in ASP.NET Forum & Tutorial





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
WikiNewForum)