If at first you don't succeed, call it version 1.0

Contact Me

Sarvesh Kushwaha
Email : sarveshkushwaha@outlook.com

Total Pageviews

Powered by Blogger.

Friday 22 August 2014

ASP.NET Precompilation for Deployment


Benefits of Precompilation in ASP.NET:

  • Initial response of application will be faster for users, because code and files will not have to be compiled at the first time any user requested.
  • We can ensure error free application at compile time
  • From security concern people who have access to production server cannot see the source code and cannot make the changes(if you have chose the option of not updatable at the time of publish).
  • Large websites must use this precompilation.


How to enable precompilation for deployment :

At the time of publishing any asp.net application in the publish web wizard on the menu of Setting we can enable this precompilation : (Using Visual Studio 2012)
Steps :

  • In Visual Studio, open a web application project.
  • Right click the project name in Solution Explorer, and then choose Publish.
  • Select the Settings tab and check precopile during publishing.
  • Click Configure for advanced setting of precompilation.



























This Precompilation have some advanced properties also : Click on configure for advanced proprieties of precompilation.



































I do always prefer my application to choose "Allow precompiled site to be updatable" because its allows to me update my (.aspx, .cshtml, .ascx , partial views, master files) in application.
its very useful when you have to update your website for minor changes ,and you don't want to deploy a build again.
.

References and further readings:

ASP.NET Precompilation Overview
ASP.NET Web Application Project Precompilation Overview
Advanced Precompile Settings
For more ASP.NET applications Performance tips and tricks

53 comments:

  1. Great post, I think all should do it priority basis ( ASP.NET Precompilation for Deployment) . after reading this post i got the useful information about this. i am using ASP.NET Hosting from Myasp.net and now i am going to enable it.

    ReplyDelete
  2. Is there any command/option to uncheck this option using command or any option in .sln file to uncheck this

    ReplyDelete
  3. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. 

    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune
    Data science training in kalyan nagar

    ReplyDelete
  4. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    Devops training in Chennai
    Devops training in Bangalore
    Devops Online training
    Devops training in Pune

    ReplyDelete

  5. Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.

    AWS Online Training | Online AWS Certification Course - Gangboard
    AWS Training in Chennai | AWS Training Institute in Chennai Velachery, Tambaram, OMR
    AWS Training in Bangalore |Best AWS Training Institute in BTM ,Marathahalli

    ReplyDelete

  6. Amazon Web Services (AWS) is the most popular and most widely used Infrastructure as a Service (IaaS) cloud in the world.AWS has four core feature buckets—Compute, Storage & Content Delivery, Databases, and Networking. At a high level, you can control all of these with extensive administrative controls accessible via a secure Web client.For more information visit aws online
    training

    ReplyDelete
  7. Can you please explain the benefits of Each Merge Option?

    ReplyDelete
  8. Can you please explain which Merge option is best with respect to performance?

    ReplyDelete
  9. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command
    angularjs Training in marathahalli

    angularjs interview questions and answers

    angularjs Training in bangalore

    angularjs Training in bangalore

    angularjs online Training

    angularjs Training in marathahalli

    ReplyDelete
  10. Thanks for your sharing such a useful information. this was really helpful to me.

    naradhar
    Education

    ReplyDelete
  11. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information.
    Web Designing Training Centers in Chennai
    web design training chennai
    web design training in chennai
    PHP course
    PHP Training
    Best PHP training in chennai

    ReplyDelete

  12. Such a wonderful article on AWS. I think its the best information on AWS on internet today. Its always helpful when you are searching information on such an important topic like AWS and you found such a wonderful article on AWS with full information.Requesting you to keep posting such a wonderful article on other topics too.
    Thanks and regards,
    AWS training in chennai
    aws course in chennai what is the qualification
    aws authorized training partner in chennai
    aws certification exam centers in chennai
    aws course fees details
    aws training in Omr

    ReplyDelete
  13. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
    Advanced AWS Training in Bangalore | Best Amazon Web Services Training Institute in Bangalore
    Advanced AWS Training Institute in Pune | Best Amazon Web Services Training Institute in Pune
    Advanced AWS Online Training Institute in india | Best Online AWS Certification Course in india

    ReplyDelete
  14. You are doing a great job. I would like to appreciate your work for good accuracy
    Regards,
    best selenium training institute in chennai

    ReplyDelete
  15. Thank you, i finally understand how to enable asp.net.

    Thanks,

    Python training in kalyan nagar

    ReplyDelete
  16. Những thông tin bạn chia sẻ, quá hay và thú vị. Tôi là người may mắn khi được đọc bài viết này

    cửa lưới chống muỗi

    lưới chống chuột

    cửa lưới dạng xếp

    cửa lưới tự cuốn

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete

  18. Hey, would you mind if I share your blog with my twitter group? There’s a lot of folks that I think would enjoy your content. Please let me know. Thank you.
    dot net training in chennai | dot net training institute in chennai | dot net course in chennai | .NET Training Center in Chennai

    ReplyDelete
  19. thanks for it.i got good information.it's very useful and support.thanks for your details.web design company in velacheryweb design company in chennai

    ReplyDelete
  20. I have been following your post for a long time. I always found it very interesting and valuable. keep posting it is really helpful.
    Cloud Migration services

    Aws Cloud Migration services

    Azure Cloud Migration services

    ReplyDelete
  21. Visit for AWS training in Bangalore:- AWS training in Bangalore

    ReplyDelete
  22. thank you so much for this nice information Article, Digitahanks for sharing your post with us.WEBMETHODS training in bangalore

    ReplyDelete
  23. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful. PEGA PPRC training in bangalore

    ReplyDelete
  24. Really i appreciate the effort you made to share the knowledge. The topic here i found was really effective...

    Upgrade your career Learn Oracle Training from industry experts gets complete hands on Training, Interview preparation, and Job Assistance at My Training Bangalore.

    ReplyDelete
  25. Really i appreciate the effort you made to share the knowledge. The topic here i found was really effective...

    Start your journey with Best SAP S4 HANA Simple Finance Training in Bangalore and get hands-on Experience with 100% Placement assistance from experts Trainers @Softgen Infotech Located in BTM Layout Bangalore. Expert Trainers with 8+ Years of experience, Free Demo Classes Conducted.

    ReplyDelete

  26. Class College Education training Beauty teaching university academy lesson  teacher master student  spa manager  skin care learn eyelash extensions tattoo spray

    ReplyDelete
  27. Whatever we gathered information from the blogs, we should implement that in practically then only we can understand that exact thing clearly, but it’s no need to do it, because you have explained the concepts very well. It was crystal clear, keep sharing...

    salesforce developer training

    salesforce tutorials for beginners

    ReplyDelete
  28. Effective blog with a lot of information. I just Shared you the link below for ACTE .They really provide good level of training and Placement,I just Had ASP.NET Classes in ACTE , Just Check This Link You can get it more information about the ASP.NET course.

    Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery

    ReplyDelete
  29. This post is really amazing
    Village Talkies a top-quality professional corporate video production company in Bangalore and also best explainer video company in Bangalore & animation video makers in Bangalore, Chennai, India & Maryland, Baltimore, USA provides Corporate & Brand films, Promotional, Marketing videos & Training videos, Product demo videos, Employee videos, Product video explainers, eLearning videos, 2d Animation, 3d Animation, Motion Graphics, Whiteboard Explainer videos Client Testimonial Videos, Video Presentation and more for all start-ups, industries, and corporate companies. From scripting to corporate video production services, explainer & 3d, 2d animation video production , our solutions are customized to your budget, timeline, and to meet the company goals and objectives.
    As a best video production company in Bangalore, we produce quality and creative videos to our clients.

    ReplyDelete