Why can't i see a detailed error message in this aspx page?
问题 I have a aspx page and it displays custom error but i can't see a detailed error message. My web.config looks like this, <?xml version="1.0"?> <configuration> <appSettings /> <connectionStrings /> <system.web> <compilation debug="true" /> <authentication mode="Windows" /> <customErrors mode="On" /> </system.web> </configuration> 回答1: To see the error you need customErrors off , like this: <customErrors mode="Off"></customErrors> From the docs, here are the options for the mode attribute: On -