LL Cool A
LL Cool A

Reputation: 3

404 Not found when MVC application deployed

I'm a newbie to Stack Overflow so here goes - I have an .NET MVC application which I've created some extra pages and additions to which works fine when I run it locally through Visual Studio which is running as http://localhost:49204.

However now I have deployed it to our server which can be accessed through http://appdev none of the additions are pulling through and I get a 404 error message when I try to access them. I've opened up firebug and tracked the URL that is being access and the parameters are the same the only difference its the servername /port number.

The files do exist on the server. I have attached screenshots of the GET request from both the server and localhost

It is important to note its only the additions that are not working, the other pages which have not been changed work correctly - very strange.

Appreciate any help you guys can suggest.

Thanks

Upvotes: 0

Views: 1091

Answers (1)

Tushar Gite
Tushar Gite

Reputation: 76

I had the same issue. Do the following process to deploy the code. when you publish the code just go to the settings and select release mode in configuration dropdown and then publish it. It will resolve your problem. :-)

Upvotes: 2

Related Questions