Why does “start debugging” cause an immediate HTTP404 error?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















Setup



I recently changed computers, and pulled down a codebase that had been working before. I created the application using the "Create Virtual Directory" button in Visual Studio, and I can confirm that the application shows up in IIS as an application. I know this codebase works because it's in production; I've just changed development environments.



The Problem: HTTP 404.0



When I run the application, the debugger launches and a browser tab opens to HTTP 404.0



The problem resembles this unanswered question, except I'm using IIS 10 instead of 8.5: https://serverfault.com/questions/702235/iis-8-5-instant-404-0-error-on-mvc-site



Details:
Detailed Error Information:
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://localhost:80/OURMVCSITE
Physical Path D:OURMVCSITE
Logon Method Anonymous
Logon User Anonymous


What I've tried



Many StackOverflow answers point to issues with the RouteConfig or Global.asax.cs. I've set breakpoints in both; neither class is ever executed.



The app pool is the default app pool running in Integrated mode under the Network Service user, and Network Service has access to every file and folder in the directory.



Searching for answers in general is somewhat difficult because most results are about creating custom 404 error pages for when users incorrectly enter a URL.










share|improve this question























  • That error sounds unusual. Have you tried running the site/application in a sandbox with the site setup in IIS and then attaching to process for debugging?

    – JKerny
    Jan 4 at 4:49











  • What do you mean by sandbox?

    – Eleanor Holley
    Jan 4 at 13:05


















1















Setup



I recently changed computers, and pulled down a codebase that had been working before. I created the application using the "Create Virtual Directory" button in Visual Studio, and I can confirm that the application shows up in IIS as an application. I know this codebase works because it's in production; I've just changed development environments.



The Problem: HTTP 404.0



When I run the application, the debugger launches and a browser tab opens to HTTP 404.0



The problem resembles this unanswered question, except I'm using IIS 10 instead of 8.5: https://serverfault.com/questions/702235/iis-8-5-instant-404-0-error-on-mvc-site



Details:
Detailed Error Information:
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://localhost:80/OURMVCSITE
Physical Path D:OURMVCSITE
Logon Method Anonymous
Logon User Anonymous


What I've tried



Many StackOverflow answers point to issues with the RouteConfig or Global.asax.cs. I've set breakpoints in both; neither class is ever executed.



The app pool is the default app pool running in Integrated mode under the Network Service user, and Network Service has access to every file and folder in the directory.



Searching for answers in general is somewhat difficult because most results are about creating custom 404 error pages for when users incorrectly enter a URL.










share|improve this question























  • That error sounds unusual. Have you tried running the site/application in a sandbox with the site setup in IIS and then attaching to process for debugging?

    – JKerny
    Jan 4 at 4:49











  • What do you mean by sandbox?

    – Eleanor Holley
    Jan 4 at 13:05














1












1








1








Setup



I recently changed computers, and pulled down a codebase that had been working before. I created the application using the "Create Virtual Directory" button in Visual Studio, and I can confirm that the application shows up in IIS as an application. I know this codebase works because it's in production; I've just changed development environments.



The Problem: HTTP 404.0



When I run the application, the debugger launches and a browser tab opens to HTTP 404.0



The problem resembles this unanswered question, except I'm using IIS 10 instead of 8.5: https://serverfault.com/questions/702235/iis-8-5-instant-404-0-error-on-mvc-site



Details:
Detailed Error Information:
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://localhost:80/OURMVCSITE
Physical Path D:OURMVCSITE
Logon Method Anonymous
Logon User Anonymous


What I've tried



Many StackOverflow answers point to issues with the RouteConfig or Global.asax.cs. I've set breakpoints in both; neither class is ever executed.



The app pool is the default app pool running in Integrated mode under the Network Service user, and Network Service has access to every file and folder in the directory.



Searching for answers in general is somewhat difficult because most results are about creating custom 404 error pages for when users incorrectly enter a URL.










share|improve this question














Setup



I recently changed computers, and pulled down a codebase that had been working before. I created the application using the "Create Virtual Directory" button in Visual Studio, and I can confirm that the application shows up in IIS as an application. I know this codebase works because it's in production; I've just changed development environments.



The Problem: HTTP 404.0



When I run the application, the debugger launches and a browser tab opens to HTTP 404.0



The problem resembles this unanswered question, except I'm using IIS 10 instead of 8.5: https://serverfault.com/questions/702235/iis-8-5-instant-404-0-error-on-mvc-site



Details:
Detailed Error Information:
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://localhost:80/OURMVCSITE
Physical Path D:OURMVCSITE
Logon Method Anonymous
Logon User Anonymous


What I've tried



Many StackOverflow answers point to issues with the RouteConfig or Global.asax.cs. I've set breakpoints in both; neither class is ever executed.



The app pool is the default app pool running in Integrated mode under the Network Service user, and Network Service has access to every file and folder in the directory.



Searching for answers in general is somewhat difficult because most results are about creating custom 404 error pages for when users incorrectly enter a URL.







asp.net asp.net-mvc iis






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 3 at 21:13









Eleanor HolleyEleanor Holley

4417




4417













  • That error sounds unusual. Have you tried running the site/application in a sandbox with the site setup in IIS and then attaching to process for debugging?

    – JKerny
    Jan 4 at 4:49











  • What do you mean by sandbox?

    – Eleanor Holley
    Jan 4 at 13:05



















  • That error sounds unusual. Have you tried running the site/application in a sandbox with the site setup in IIS and then attaching to process for debugging?

    – JKerny
    Jan 4 at 4:49











  • What do you mean by sandbox?

    – Eleanor Holley
    Jan 4 at 13:05

















That error sounds unusual. Have you tried running the site/application in a sandbox with the site setup in IIS and then attaching to process for debugging?

– JKerny
Jan 4 at 4:49





That error sounds unusual. Have you tried running the site/application in a sandbox with the site setup in IIS and then attaching to process for debugging?

– JKerny
Jan 4 at 4:49













What do you mean by sandbox?

– Eleanor Holley
Jan 4 at 13:05





What do you mean by sandbox?

– Eleanor Holley
Jan 4 at 13:05












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54029887%2fwhy-does-start-debugging-cause-an-immediate-http404-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54029887%2fwhy-does-start-debugging-cause-an-immediate-http404-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas