Pergunta

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 ?

Foi útil?

Solução

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).

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top