문제

Using Visual Studio 2012 Express on Windows 7, From MVC 4 internet application template I created a new project, then used the simple membership and tested successfuly the authentication.

Then to try the simplest deployment way, as first step I tried the application on localhost, following the next steps:

  • published the project using File System publish method,
  • targeted a new folder: "C:\inetpub\wwwroot\MyApp",
  • copied App_Data folder into "C:\inetpub\wwwroot\MyApp",
  • allowed to IIS_IUSRS read permission on folder "MyApp".

As database is an SQL CE type, I think that there is nothing to change in the web.config connectionStrings section.

Publishing went great untill the final step: browser loading, I got the next error:

Not Found

HTTP Error 404. The requested resource is not found. - with Error code: 0x80070002

I failed to find an answer to this issue on google in a limited time, Please advise what could be done ?

도움이 되었습니까?

해결책

As stated in my comments, make sure your URL is correctly formatted in the Project Properties. Also, make sure you set up a default startup page (if you don't have an Index action in the Home Controller).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top