Deploying Website: 500 - Internal Server Error


Jacob Jedricek

I am trying to deploy an ASP.NET application. I have deployed the site to IIS, but when accessing it with a browser it shows me this:

Server Error

500 Internal Server Error.

There is a problem with the resource you are looking for and cannot be displayed.

After fiddling with the web.config, I got:

The page cannot be displayed due to an internal server error.

How can I see the actual problem behind this server error?

Aristotle

First, you need to enable and view detailed errors for web messages , as this is a general message that provides no information on what is actually happening for security reasons.

With detailed errors, you can find the real problem here.

Also, if you can run a browser on the server , you can get details about the error because the server will recognize you as a local user and show you the error. Alternatively, if you can read the server 's log using Event Viewer , you will also see the details of the error.

on IIS 6

<configuration>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

on IIS 7

<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

Note: You can avoid Debug=true . You just have to turn off custom errors for a while and get the detailed error page.

Reference: Enabling Windows Custom Error Messaging in Go Daddy's help article .

Also, this may help you: How to enable detailed error messages (from IIS).

Related


Deploying Website: 500 - Internal Server Error

Jacob Jedricek I am trying to deploy an ASP.NET application. I have deployed the site to IIS, but when accessing it with a browser it shows me this: Server Error 500 Internal Server Error. There is a problem with the resource you are looking for and cannot be

Deploying Website: 500 - Internal Server Error

Jacob Jedricek I am trying to deploy an ASP.NET application. I have deployed the site to IIS, but when accessing it with a browser it shows me this: Server Error 500 Internal Server Error. There is a problem with the resource you are looking for and cannot be

Flask website - 500 Internal Server Error

Robert R I can't understand why the flask app I'm trying to start isn't working. I'm running it on a $5 Digital Ocean droplet. Here's (hopefully) all you need to know: Directory layout (included in /var/www/): FlaskApp FlaskApp __init__.py

PHPMailer returns 500: Internal server error from hosting website

Manas Paldhe I am trying to learn web development. I bought a domain name say "test.com" and hosted it. I am trying to implement the functionality to send emails from a website. The specific php file on the server looks like this: <?php require_once "Mail.php

PHPMailer returns 500: Internal server error from hosting website

Manas Paldhe I am trying to learn web development. I bought a domain name say "test.com" and hosted it. I am trying to implement the functionality to send emails from a website. The specific php file on the server looks like this: <?php require_once "Mail.php

PHPMailer returns 500: Internal server error from hosting website

Manas Paldhe I am trying to learn web development. I bought a domain name say "test.com" and hosted it. I am trying to implement the functionality to send emails from a website. The specific php file on the server looks like this: <?php require_once "Mail.php

Internal server error (500)

Chemical 004 have this problem if(attributeName == 'id'){ var id = dataValue; $("#discard").click(function(){ alert(id); $.ajax({ url: 'deleteob/' + id }); }); } I have this route in web.php Route::get('/dele

500 Internal Server Error Heroku

Aluminum explosion-proof I have a small system built with Flask-SQLAlchemy for learning purposes and deployed on Heroku (python/postgresql: http://monkey-me.herokuapp.com/ https://github.com/coolcatDev/monkey-me My app works fine locally and has unit tested it

500 Internal Server Error CakePHP

cool developer I uploaded a CakePHP project to Godaddy server. I also saw this link. But doesn't solve the error :- 500 Internal Server Error in CakePHP 3? How to fix cakephp 500 internal server error? CakePHP 500 Internal Server Error CakePHP shows 500 Intern

500 Internal Server Error in Codeigniter

Caitanya K I am using CodeIgniter 3. My .htaccessfile contains the following. I get a 500 Internal Server Error. I tried to rename the .htaccessfile and I got a 404. I would like to see the Apache error log. But I only have one folder in my root directory, whi

Internal Server 500 Error - Django

ph I'm trying to create a "like" button, but when I click the button, I get the following error: POST http://127.0.0.1:8000/like/ajax/ 500 (INTERNAL SERVER ERROR). When I look in the console, the problem can be traced back to this line of mine views.py:like_it

phpMyadmin Internal Server Error 500

Ryan Internal Server Error 500 Cpanel::Exception::IO::UnlinkError/(XID 8zg8cp) The system cannot unlink [list_and_quoted,_1] because of error: Permission denied at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330. Cpanel::Exception::create("IO::UnlinkError"

POST 500 Internal Server Error

Onetek I'm trying to learn how to pass value from jquery to controller and insert it into database instead of form to controller in laravel 5.4 but unfortunately I get this error message: POST http://xxxx:x/addtable 500 (Internal Server Error). Here is my blad

500 Internal Server Error Hosting

Harun Aslam I have a website on hosting but I am getting 500 internal errors for a single website I don't know what to do I have set the php flag and this is my .htacces file code # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / Rewrit

500 Internal Server Error Unreachable

amine I'm using Odoo 8 on Windows 7 and everything works fine until I try to make the Fleet.vehicle class inherit another class (via prototypal inheritance): _name = 'fleet.vehicle' _inherit = 'another.class' Since then, when trying to access my http://localh

500 - Internal server error, no details

Imad The client gave me a server with a public IP. I can see the default IIS page in my local browser. Then I did the following steps I posted the solution (Asp.Net MVC) on the file system. Published folders on the server have been replicated. Created new webs

POST 500 (Internal Server Error)

Ponst I get a POST 500 (Internal Server Error) on my website. When testing on my localhost I don't get any errors, I only get errors when trying to call the stored procedure after publishing and running the site. The line numbers have pointed me to the line of

AJax Internal Server Error 500

Scrimman I have a problem with a page method, I have this page method on ASP.net Webform [WebMethod(true)] public static int GetInt(int id){ return 10; } I call it like this from JQuery $.ajax({ type: "POST", url

javascript 500 Internal Server Error

Ronan I get this error when I look at the JavaScript console POST (website's url) GetUserPass 500 (Internal Server Error). A popup also said there was an unexpected token > I'm guessing these two things are related, so does anyone have any insight into them? O