HTTP / 1.1 Error

I just switched from my old host to Godaddy, which seems like the worst web host without support.

I moved my asp website (written in classic asp) to a new windows hosting. but when I start the site, I get the following error

HTTP / 1.1 New Application Error

this site worked perfectly with my previous host.

below is what i have in the web.config file

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

can someone tell me why i get this error and how to fix it?

Any help would be appreciated.

+5
source share
2 answers

I had the same problem moving a website from one hosting account (classic windows) to another (plesk), like on GoDaddy. After fixing many headache problems, I managed to fix this by removing the entire <asp> from the web.config file;

  <!-- <asp scriptErrorSentToBrowser="true"/> --> 

IIS 8 (only an option in plesk) does not support this option as a whole, and setting up verbose messaging by mistake is done differently using:

  <httpErrors errorMode="Detailed" existingResponse="PassThrough" /> 

Additional instructions can be found on this GoDaddy support page: https://support.godaddy.com/help/article/3430/getting-detailed-errors-on-your-windows-website?countrysite=ca

+15
source

I just encountered the same error this morning after renaming some websites in IIS. Restarting IIS started my sites again and started them in seconds. Presumably, the .config files are read at startup and the β€œprobably” cause of this error is for me.

+2
source

Source: https://habr.com/ru/post/1200353/