Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt 20 posts 40 karma points
    Feb 12, 2013 @ 15:17
    Matt
    0

    Getting errors to display from custom user control??

    Hi all,

    As title really I am getting the generic error message from within a custom user control.

    I have changed the errors flag in web.config but this doesnt override it for some reason.

    What is the best method for getting Umbraco to display a meaningful error message so I can fix my user control?
    Thanks for any help.

     

    Matt

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 12, 2013 @ 15:20
    Jan Skovgaard
    0

    Hi Matt

    What error message do you currently see?

    Have you tried adding ?umbdebugshowtrace=1 to the url of the page you're trying to view?

    Make sure that umbracoDebugMode is set to true in the web.config file.

    /Jan

  • Matt 20 posts 40 karma points
    Feb 12, 2013 @ 15:24
    Matt
    0

    Thanks,

    I have the umbracoDebugMode set to true and have tried the ?umbdebugshowtrace=1 also but still get the following error...

     

    Server Error in '/' Application.


    Runtime Error

    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>


    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

    <!-- Web.Config Configuration File -->
    
    <configuration>
        <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration>
  • Matt 20 posts 40 karma points
    Feb 12, 2013 @ 15:27
    Matt
    0

    I should have added.. my custom control displays correctly.. it is when I click a button in the user control that this error displays so it is 100% my user control..

    I just wanna see the error lol.

    Thanks again

  • Antony Briggs 78 posts 103 karma points
    Feb 14, 2013 @ 12:16
    Antony Briggs
    0

    Hi Matt,

    That error message is the stock .net one, you just need to follow the instructions and configure customErrors in the web.config to see details of the error. (Don't do this on a live site or Mr Nasty Hacker will gain useful info on your site.

    TTFN

    Ant

  • Matt 20 posts 40 karma points
    Feb 14, 2013 @ 13:49
    Matt
    0

    customErrors is already configured but it still displays the stock error message for some reason. Its as though there is some umbraco setting overriding it or something.

     

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft