IIS execution error

1

Good morning. I would like you to help me I am uploading my website in a IIS my web config is this code:

<system.web>

  <compilation debug="true" targetFramework="4.5" />

  <httpRuntime targetFramework="4.5" />

</system.web>

<add name="CnxUsu" connectionString="wZhyFoK5oBXaBFXNVySITwTMhFY7C3j/x6DJIUs0jQRLy585tK7zEDBzFT+2hDlPDMf0iRvNU3cHbt8ZmcBxZVL19Rc5+nKXUvX1Fzn6cpeqxEkfr3XPilRKZCu1Ctg1B/2i0Q5wWaI133mgd9HkWQ==">

    
asked by PieroDev 25.03.2017 в 16:19
source

1 answer

0

In the web.config ( do not confuse with the web.config that is inside the folder View s), below configuration>system.web add the following tag:

<customErrors mode="Off" />

This will show you clearly the error. If you ask yourself why you have to configure this, it's for security. It is not good that the stacktrace everyone is seeing it because in the wrong eyes it can hurt you a lot.

I advise you to change the value to On when you finish. If you prefer not to change the configuration, then test the application in your local IIS since locally it will always be Off .

On the official page give more information .

p>     
answered by 20.04.2017 / 04:24
source