0

Our production sites return yellow screen as response in case of bad request.

Most of the asp.net bases sites including asp.net, MSDN even in local environment IIS return a user friendly response. what am I missing? our sites are hosted at IIS8

Kara
  • 6,115
  • 16
  • 50
  • 57

1 Answers1

-1

In your web.config, turn debug to false and custom errors on. You can also name the page you want to to redirect to see this post Server Error in '/' Application. ASP.NET. That should do it.

<system.web>
    <compilation debug="false" targetFramework="4.5" />
    <customErrors mode="On" />
</system.web>
Community
  • 1
  • 1
Dr. Aaron Dishno
  • 1,859
  • 1
  • 29
  • 24