C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » ASP.NET/Web Applications »

Deploying Pre-Compiled Web Applications


Posted Date: 07 Jun 2008    Resource Type: Articles    Category: ASP.NET/Web Applications
Author: shakti singh tanwarMember Level: Diamond    
Rating: 1 out of 5Points: 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

Author: Vicky    26 Aug 2009Member Level: Bronze   Points : 1
Thanks for such information.

Kindly you give the steps for decompilation.




Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add 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: Cross Page PostBack
Previous Resource: Web Form Life Cycle
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET/Web Applications


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use