Hello,
This is related to setting custom error pages in IIS 7.5
We have an application, wherein we have custom Error pages, for 404 and 500 respectively.
Lets take the default case for error code 500:
Open IIS Manager, goto my Website -> Error Pages
- File Path - %SystemDrive%\inetpub\custerr\<LANGUAGE-TAG>\500.htm -- Actions pane -> Edit option
- Error Responses - Detailed errrors for local requests and custom error pages for remote requests -- Actions pane -> Edit Feature Settings option
Till this time everything is working perfectly fine!
Now, we have custom error page to set.
So what I do is, go to Actions pane, and make the following changes for Error code 500:
- Url - /Errorpages/SpecificErrorpage.aspx -- Actions pane -> Edit option
- Error Responses - either keep the same i.e. "Detailed errrors for local requests and custom error pages for remote requests" or make it "Custom Error Pages" -- Actions pane -> Edit Feature Settings option
And now, you can open your website and DLL,
i.e. http://mywebsite/bin/MyDll.dll
it will ask to be downloaded.
Is this not wrong?
Eagerly awaiting response!
Regards,
Varun Shringarpure