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:
- Download the dnndebug.rar file and decompress it to obtain the "dnndebug. aspx" file.
- Put this file in the root directory of the dotnetnuke website
- Then access the file in the browser (for example, http: // localhost/dotnetnuke/dnndebug. aspx)
- Enter the web contol address (for example :~ /Shorttopmodules/feedback. ascx)
- 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