0

I'm getting a runtime error on one of my web pages.

The error tells me to set customErrors mode="Off" in the web.config file, which makes no difference. (I assume the server is configured not to throw specific errors)

My config file looks like this.

<?xml version="1.0"?>
<configuration>
 <system.web>
 <compilation debug="true" targetFramework="4.0"/>
 <customErrors mode="Off"/>
 </system.web>
</configuration>

It runs fine locally. Is there a way for me to see exactly what is causing the error?

Tasos K.
8,1057 gold badges43 silver badges68 bronze badges
asked Oct 23, 2013 at 21:20
4
  • Maybe this helps? stackoverflow.com/questions/5890207/… Commented Oct 23, 2013 at 21:25
  • Nope, that user got his specific error by changing customerError="Off", that is not happening for me. I constantly get the same ambiguous error. Commented Oct 23, 2013 at 21:30
  • Check that virtual directory is created, and look at the IIS logs? techslate.net/… Commented Oct 23, 2013 at 21:31
  • Check this out - stackoverflow.com/questions/1063190/… Commented Oct 23, 2013 at 21:33

2 Answers 2

2

Try to add the following in your Web.config file. Enabling detailed error mode might give you more information regarding the error.

<configuration>
 <system.webServer>
 <httpErrors errorMode="Detailed" />
 <asp scriptErrorSentToBrowser="true"/>
 </system.webServer>
 <system.web>
 <customErrors mode="Off"/>
 <compilation debug="true"/>
 </system.web>
 </configuration>

This is for IIS 7. If you are in IIS 6 ignore the system.webServer tag.

answered Oct 23, 2013 at 21:50
1
  • This worked! The error is now 'Unable to find the requested .Net Framework Data Provider. It may not be installed.' trying to query an sql ce Database. eek Commented Oct 23, 2013 at 23:56
1

IIS may need to be configured to enable detailed error reporting. This is not recommended for production machines so if you have to use it be sure to turn it off when finished. See http://blogs.msdn.com/b/rakkimk/archive/2007/05/25/iis7-how-to-enable-the-detailed-error-messages-for-the-website-while-browsed-from-for-the-client-browsers.aspx

answered Oct 23, 2013 at 21:47

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.