C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Deploying Pre-Compiled Web Applications


Posted Date: 07 Jun 2008    Resource Type: Articles    Category: Web Applications
Author: shakti singh tanwarMember Level: Diamond    
Rating: Points: 10



The article explains manual precompilation process of the whole application using the PreCompilation tool installed with ASP.NET 2.0.

The steps invovled are :-

1. Type "cmd" from Run Prompt to open the Command Prompt

2. Navigate to %windir%\Microsoft.NET\Framework\v2.0.50727

3. Type aspnet_compiler -v /"Website Name" -p "Physical Path to your site" "Physical Path to Deployment Location"

4. e.g aspnet_compiler -v /Website1 -p "C:\Projects\Website1" "C:\PreCompiled Website1"

5. There are multiple switches which you can try in the above command. You can verify all the options by typing aspnet_compiler -? from %windir%\Microsoft.NET\Framework\v2.0.50727\

Once you run the above command you would notice that in the Deployed location, all the files including ASPX, ASCX are precompiled and dont contain any markup. If you try opening an ASPX Page, you will only find the text "This is a marker file generated by the precompilation tool, and should not be deleted!" and it does not contain any HTML markup. This way the site is totally pre-compiled and can also prevent any one from viewing the source code. You need to specify the "-u" keyword in the above command before the target directory specification, to make this site updatable.





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Using precompilation tools  .  Precompilation tools  .  Pre-compiling applications  .  Deploying precompiled applications  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Sending a web Page as mail body using Gmail server
Previous Resource: Web Form Life Cycle
Return to Discussion Resource Index
Post New Resource
Category: Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use