{"id":30,"date":"2005-09-30T15:55:41","date_gmt":"2005-09-30T20:55:41","guid":{"rendered":"http:\/\/stein.everybody.org\/brain\/error-while-trying-to-run-project-unable-to-start-debugging-on-the-web-server-server-side-error-occurred-on-sending-debug-http-request\/"},"modified":"2011-03-10T10:57:34","modified_gmt":"2011-03-10T15:57:34","slug":"error-while-trying-to-run-project-unable-to-start-debugging-on-the-web-server-server-side-error-occurred-on-sending-debug-http-request","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/error-while-trying-to-run-project-unable-to-start-debugging-on-the-web-server-server-side-error-occurred-on-sending-debug-http-request\/","title":{"rendered":"Error while trying to run project: Unable to start debugging on the web server. Server side-error occurred on sending debug HTTP request."},"content":{"rendered":"<p>I moved my ASP.NET application to a virtual directory under &#8220;My Documents&#8221;.  When I tried to run it, I got this error:<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nMicrosoft Development Environment<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nError while trying to run project: Unable to start debugging on the web server. Server side-error occurred on sending debug HTTP request.<\/p>\n<p>Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing a Debug.Start Without Debugging. You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.<\/p>\n<p>When I tried to Start Without Debugging, I got this page:<\/p>\n<p>Server Error in &#8216;\/web&#8217; Application.<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Server cannot access application directory &#8216;C:\\Documents and Settings\\me\\My Documents\\Dir\\Subdir\\web\\&#8217;. The directory does not exist or is not accessible because of security settings.<br \/>\nDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.<\/p>\n<p>Exception Details: System.Web.HttpException: Server cannot access application directory &#8216;C:\\Documents and Settings\\me\\My Documents\\Dir\\Subdir\\web\\&#8217;. The directory does not exist or is not accessible because of security settings.<\/p>\n<p>Source Error:<\/p>\n<p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.<\/p>\n<p>Stack Trace:<\/p>\n<p>[HttpException (0x80004005): Server cannot access application directory &#8216;C:\\Documents and Settings\\me\\My Documents\\Dir\\Subdir\\web\\&#8217;. The directory does not exist or is not accessible because of security settings.]<br \/>\nSystem.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72<br \/>\nSystem.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263<\/p>\n<p>[HttpException (0x80004005): ASP.NET Initialization Error]<br \/>\nSystem.Web.HttpRuntime.FirstRequestInit(HttpContext context) +974<br \/>\nSystem.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest<\/p>\n<p>The solution was to give access to the My Documents folder to the ASPNET user.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I moved my ASP.NET application to a virtual directory under &#8220;My Documents&#8221;. When I tried to run it, I got this error: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Microsoft Development Environment &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Error while trying to run project: Unable to start debugging on the web server. Server side-error occurred on sending debug HTTP request. Make sure the server is operating [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-net"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}