Deploying website: 500 - Internal server error

后端 未结 22 2210
情深已故
情深已故 2020-11-21 23:30

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

Server Error

相关标签:
22条回答
  • 2020-11-22 00:08

    I recently got into same problem, the disk space was full on the server. Clearing some space has resolved the issue.

    0 讨论(0)
  • 2020-11-22 00:09

    For those who have this possibility (VPS hosting not web hosting):

    Connect to your hosting server via Remote Desktop. Open Web Browser from your remote desktop and you will see the detail description of the error.

    You don't need to modify web.config or expose any details to anybody else.

    0 讨论(0)
  • 2020-11-22 00:10

    In addition to the other suggestions, make sure to change the existingResponse attribute of the httpErrors node to Auto from Replace, or to remove that property entirely.

    <httpErrors existingResponse="Replace" />
                                  ^^^^^^^ not going to work with this here
    
    0 讨论(0)
  • 2020-11-22 00:10

    Before changing the web.config file, I would check that the .NET Framework version that you are using is exactly (I mean it, 4.5 != 4.5.2) the same compared to your GoDaddy settings (ASP.Net settings in your Plesk panel). That should automatically change your web.config file to the correct framework.

    Also notice that for now (January '16), GoDaddy works with ASP.Net 3.5 and 4.5.2. To use 4.5.2 with Visual Studio it has to be 2012 or newer, and if not 2015, you must download and install the .NET Framework 4.5.2 Developer Package.

    If still not working, then yes, your next step should be enabling detailed error reporting so you can debug it.

    0 讨论(0)
  • 2020-11-22 00:14

    For me, the following code in the web.config was the culprit. When I removed it, the web site worked fine.

      <staticContent>
        <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
      </staticContent>
    
    0 讨论(0)
  • 2020-11-22 00:14

    Server Error 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. Goddady. Hosting - Web - Economy - Windows Plesk

    In my case, I replace this code:

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

    Then change framework 3.5 to framework 4. It shows my detailed error. I delete code in:

    <httpModules></httpModules>
    

    It solved my problem.

    0 讨论(0)
提交回复
热议问题