0

I am trying to use

<customErrors defaultRedirect="error.html" mode="RemoteOnly" />

It looks like the error.html is not being found and instead the server displays default

Server Error in '/' Application page

.

I have a problem with assemblies on my live site (see ) and not sure something is wrong with my custom error settings (unlikely) or it's not working because my site doesn't compile?

Community
  • 1
  • 1
nickornotto
  • 1,946
  • 4
  • 36
  • 68
  • How are you accessing the site? From the same machine the server is running on? – mason Apr 05 '17 at 13:13
  • @mason no, through web address, it's a hosted site – nickornotto Apr 05 '17 at 13:14
  • Refer here http://stackoverflow.com/questions/20140674/iis-custom-errors-not-showing-custom-error-page, from other system you can set – Anil Apr 05 '17 at 13:15
  • @Anil Setting it to On shouldn't be necessary. RemoteOnly should be sufficient in this case. – mason Apr 05 '17 at 13:15
  • Can you show that configuration line's context? What elements do you have it nested under? Which file did you place it in? Did you verify that the files that end up getting deployed to the server are exactly what you'd expect? – mason Apr 05 '17 at 13:16
  • @mason As you can see I have no element underneath customerrors. But even when I had there was no difference - the defaultRedirect value was ignored – nickornotto Apr 05 '17 at 16:01
  • I'm not asking about elements under it. I'm asking about what's above it. We need to verify that 1) your element is nested in the right place and 2) this configuration is in the right file. When you're trying to debug things, you need to verify every part in the pipeline in order to identify what's wrong. Incidentally, what is the rest of the error message that you're seeing on the Yellow Screen of Death? – mason Apr 05 '17 at 16:18

0 Answers0