Dnn debugging tool dnndebug. aspx-how to debug program errors with unspecified error information

Source: Internet
Author: User
Tags dnn dotnetnuke
In some cases Program The error prompt does not indicate the specific error location. If breakpoint tracking is used, we do not know where to insert the breakpoint. In this way, debug can only rely on speculation, for example, the following error prompt:

Error
Error: edit content is currently unavailable.
Dotnetnuke. Services. Exceptions. moduleloadexception:
External component has thrown an exception. ---> system. Web. httpcompileexception: external component has thrown an exception.
At system. Web. Compilation. assemblybuilder. Compile ()
At system. Web. Compilation. buildproviderscompiler. extends mbuild ()
At system. Web. Compilation. buildmanager. compilewebfile (virtualpath)
At system. Web. Compilation. buildmanager. getvpathbuildresultinternal (virtualpath, Boolean nobuild, Boolean allowcrossapp, Boolean allowbuildinprecompile)
At system. Web. Compilation. buildmanager. getvpathbuildresultwithnoassert (httpcontext context, virtualpath, Boolean nobuild, Boolean allowcrossapp, Boolean allowbuildinprecompile)
At system. Web. UI. templatecontrol. loadcontrol (virtualpath)
At system. Web. UI. templatecontrol. loadcontrol (string virtualpath)
At dotnetnuke. UI. Skins. Skin. injectmodule (control objpane, moduleinfo objmodule, portalsettings) in
E: \ Development \ dotnetnuke \ installarea \ dotnetnuke_04.08.03_source \ library \ Components \ skins \ skin. VB: Line 492 --- end of inner exception stack trace ---

Using this file, you can clearly see what went wrong:

    1. Download the dnndebug.rar file and decompress it to obtain the "dnndebug. aspx" file.
    2. Put this file in the root directory of the dotnetnuke website
    3. Then access the file in the browser (for example, http: // localhost/dotnetnuke/dnndebug. aspx)
    4. Enter the web contol address (for example :~ /Shorttopmodules/feedback. ascx)
    5. If you want to solve the problem, you can send an email to the author Nik to express your gratitude.

Note!

This file must be deleted when the website is published !!

Appendix: Fixed a bug.

the label does not use the runat = "server" attribute, which sometimes leads to an error. For example, a control tries to find the Control and registers Javascript in it

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.