One reason this could occur is if you don't have a start page set under your web project's properties. So do this: Show
Now, if you launch your web application, it will take you to the view rendered by the HomeController's Index action method. (or) Simply, you could also open one of the controllers in your project and then hit on F5 or Ctrl + F5. What's happening now is that, you are currently in your /Views/home/Index.cshtml view and you just hit on F5 or Ctrl + F5. In an mvc project, you cannot open a file w/ .cshtml extension directly as IIS cannot understand that. The controller is supposed to return a matching view from within the action method. As a side-note also check if you have MVC 3 installed correctly. If my answer doesn't help, I am sorry. Hope this helps! The 500 Internal Server Error is a very general
HTTP status code that means something has gone wrong on the website's server, but the server could not be more specific on what the exact problem is. Are You the Web Manager? See Fixing 500 Internal Server Error Problems on Your Own Site towards the bottom of the page for some better advice if you're seeing the error on one or more of your pages. How You Might See a 500 ErrorThe error message might be seen in many ways because each website is allowed to customize the message. Lifewire / Hugo LinHere are several common ways that you might see the HTTP 500 error:
Since a 500 Internal Server Error is generated by the website you're visiting, you could see one in any browser in any operating system, even on your smartphone. Most of the time, it displays inside the browser window, just as web pages do. Cause of HTTP 500 ErrorsLike we mentioned above, Internal Server Error messages indicate that something, in general, is wrong. Most of the time, "wrong" means an issue with the page or site's programming, but there's certainly a chance that the problem is on your end, something we'll investigate below. More specific information about the cause of a particular HTTP 500 error is often provided when it occurs on a server using Microsoft IIS software. Look for numbers after 500, as in HTTP Error 500.19 - Internal Server Error, which means Configuration data is invalid. How to Fix the 500 Internal Server ErrorLike we alluded to above, the 500 Internal Server Error is a server-side error, meaning the problem probably isn't with your computer or internet connection but instead with the website's server. While not probable, there may be something wrong on your end, in which case we'll look at some things you can try:
If the 500 Internal Server Error message appears at checkout during an online purchase, it might help to realize that sales are probably being disrupted—usually a great incentive to the online store to fix the issue very quickly! Even if you're getting the 500 error on a site that doesn't sell anything, like YouTube or Twitter, as long as you've let them know about the problem, or at least tried, there's little more you can do than wait it out. Fixing 500 Internal Server Error Problems on Your Own SiteA 500 Internal Server Error on your website requires an entirely different course of action. As we mentioned above, most 500 errors are server-side errors, meaning it's likely your problem to fix if it's your website. There are lots of reasons why your site might be serving a 500 Error to your users, but these are the most common:
If you're running WordPress, Joomla, or another content management or CMS system, be sure to search their support centers for more specific help troubleshooting a 500 Internal Server Error. If you're not using an off-the-shelf content management tool, your web hosting provider, like InMotion, Dreamhost, IONOS (1&1), etc., probably has some 500 Error help that might be more specific to your situation. More Ways You Might See an Internal Server ErrorWhen Google services, like Gmail, are experiencing the error, they often report a Temporary Error (500), or simply 500. When Windows Update is involved, it appears as a WU_E_PT_HTTP_STATUS_SERVER_ERROR message or 0x8024401F error. If the website that reports the 500 error is running Microsoft IIS, you might get a more specific error message:
Errors Like the HTTP 500 ErrorMany browser error messages are similar to the 500 Internal Server Error message because they're all server-side errors, like 502 Bad Gateway, 503 Service Unavailable, and 504 Gateway Timeout. Many client-side HTTP status codes also exist, like the popular 404 Not Found error, among others. You can see all of them in our HTTP Status Code Errors list. Thanks for letting us know! How do you fix there is a problem with the resource you are looking for and it Cannot be displayed?There is a problem with the resource you are looking for, and it cannot be displayed. To resolve this issue, set the Enable 32-bit Applications to "False": Open the Internet Information Services (IIS) Manager. Select Application Pools.
What does 500 Internal server error There is a problem with the resource you are looking for and it Cannot be displayed?A 500 internal server error is, as the name implies, a general problem with the website's server. More than likely, this means there's an issue or temporary glitch with the website's programming. Some potential causes of a 500 internal server error include: Corrupted or broken .
How do I get rid of error 500?Delete your browser's cookies. You can correct some 500 Internal Server Error issues by deleting the cookies associated with the site on which you're getting the error. After removing the cookie(s), restart the browser and try again. Troubleshoot as a 504 Gateway Timeout error instead.
What does this mean the page Cannot be displayed because an internal server error has occurred?When a error is 500, that means it's an internal error, meaning internal to the service - the service threw an exception that was not caught. Look in the Windows event logs on the server to see what went wrong. Also, try: - Go to menu Tools/Internet Options in your IE.
|