Automating Your Builds With NAnt - Part 7(jpboodhoo.com)
submitted by bitwisejp(1040) 6 years ago
Learn how to use NAnt to automate the deployment of an ASP.Net web application.
1 comment |category: C# |Views: 75 Tweet
tags: NAnt another
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
posted by snickers5x5(254) 5 years, 8 months ago 0
Great article on how to get using NAnt and automating your builds for web projects. However, I did have some trouble after trying to implement this for a project of my own. I believe that it is more to do with IIS and how this NAnt script is set up to create the virtual directory etc. After successfully running the deploy build (which pretty much does everything else in the series except the testing) I was unable to browse to the new site. I received an error "Server Application Unavailable". It also left the following in my Application Event log. "Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80070005 Access is denied." After searching for a while all over Internet-land, I came across the following blog post and comments that solved my problem. http://blog.devstone.com/aaron/archive/2005/12/17/1379.aspx. A comment I found useful on this post was a suggestion to use the Permissions wizard on the web application through IIS. Resetting it to its own permissions solved my problem and now it runs great. I believe there may be something in the NAnt.Contrib.Tasks.dll library that may be able to handle the permissions options in the build script. Excellent series. I feel much more confident starting up my own build process now with NAnt, looking foward to trying the CC option as well.
Reply
All tags Your tags
Suggest a new category
dpeterson(1273)
Telerik(409)
fdub(381)
amit.jain(273)
BlackWasp(259)
RobertTheGrey(259)
jalpesh(252)
KodefuGuru(227)
KMillerr(226)
vijayst(223)