I have an asp.net mvc website. http: /mywebsite.com (for this example only)
I tested this asp.net mvc website locally on my machine, and everything works fine on my local machine during testing. When I deploy to my web server
when I bring up http://mywebsite.com , it goes to HomeController and loads the Views / Home / Index.aspx view (which is perfect), Thus, the default main page is fine.
The problem is that if I click other other links (again, everything seems to work fine locally), I get the following error:
Page not found.
Perhaps the page you were looking for has been deleted, its name has changed or is temporarily unavailable.
Try the following:
* Make sure that the website address displayed in the address bar of your browser is spelled and formatted correctly.
* If you have reached this page by clicking on the link, contact the website administrator to warn them that the link is incorrectly formatted.
* Click the back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
some examples:
Http: /mywebsite.com \ Photos
http: /mywebsite.com \ Links
the controllers and views are definitely configured there (or it won’t work locally).
- , , - -