Juice
Juice
The Better Browser
Subscribe
RSS
(What is this?)
Latest Comments
Email me Send me Feedback
Technorati Profile
Copyright 2003-4 Randy Charles Morin
Fri, 03 Dec 2004 03:19:13 GMT
Error while trying to run project

Ever get this while debugging a Web project in Visual Studio?

The image “http://img18.exs.cx/img18/6599/36-error.jpg” cannot be displayed, because it contains errors. 

I get it all the time. It happens when I move projects around and forget to give the ASP and IIS user permission to the folder. If you run w/out the debugger, you'll get the following more obvious error message.

System.Web.HttpException: Server cannot access application directory '...'. The directory does not exist or is not accessible because of security settings.

Goto Folder Properties | Security and give access to the ASP.NET Machine Account and the Internet Guest Account. Next you may or may not incur a similar dialog but w/ a new error message; The project is not configured to be debugged. The happens when you're missing a Web.config file or when the Web.config file does not allow debugging.

I hit this problem so frequently, I figured it was worth more documentation so that next time I'm programming under the influence of alcohol, I'll more easily find my way home ;)

Permalink
Comments
+del.icio.us
Tell-a-Friend
Comments RSS
Mon, 13 Jun 2005 22:35:49 GMT
Error while trying to run project

http://onet.pl

Wed, 09 May 2007 14:25:35 GMT
Error while trying to run project
Comments Closed!