DotNetNuke 4.3.5 StarterKit C # The template cannot run the Bug

Source: Internet
Author: User
Tags dotnetnuke

First, the following error message is displayed:

Error: TesingModulle is currently unavailable.
DotNetNuke. Services. Exceptions. ModuleLoadException:
E: \ Development \ DotNetNuke_4.3.5_Source \ Website \ topics topmodules \ TestingModule \ ViewTestingModule. ascx. cs (136 ):
Error CS0019: Operator '&' cannot be applied to operands
Type
'String' and 'string' ---> System. Web. HttpCompileException:
E: \ Development \ DotNetNuke_4.3.5_Source \ Website \ topics topmodules \ TestingModule \ ViewTestingModule. ascx. cs (136 ):
Error CS0019: Operator '&' cannot be applied to operands
Type
'String' and 'string' (the operator "&" cannot be applied to operands of the string and string types)
System. Web. Compilation. AssemblyBuilder. Compile ()
System. Web. Compilation. BuildProvidersCompiler. extends mbuild ()
System. Web. Compilation. BuildManager. CompileWebFile (VirtualPath
VirtualPath)
System. Web. Compilation. BuildManager. GetVPathBuildResultInternal (VirtualPath
VirtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
AllowBuildInPrecompile)
System. Web. Compilation. BuildManager. GetVPathBuildResultWithNoAssert (HttpContext
Context, VirtualPath virtualPath, Boolean noBuild, Boolean
AllowCrossApp, Boolean allowBuildInPrecompile)
System. Web. UI. TemplateControl. LoadControl (VirtualPath virtualPath)
System. Web. UI. TemplateControl. LoadControl (String virtualPath)
DotNetNuke. UI. Skins. Skin. InjectModule (Control objPane, ModuleInfo
ObjModule, PortalSettings) in
E: \ Development \ DotNetNuke_4.3.5_Source \ Library \ Components \ Skins \ Skin. vb: line
446 --- End of inner exception stack trace ---
Follow the prompts to find the error code, line 1. Obviously, the author connected the string according to the VB syntax. Foreach (PropertyInfo objPropertyInfo in objProperties)

&
Nbsp ;{
Row 3:

If (strContent. IndexOf ("[" & objPropertyInfo. Name. ToUpper () & "]")! =-1)
{
StrValue = Server. HtmlDecode (DataBinder. Eval (e. Item. DataItem, objPropertyInfo. Name). ToString ());
StrContent = strContent. Replace ("[" + objPropertyInfo. Name. ToUpper () + "]", strValue );
}
}

Change "&" to "+ ".

The following error message appears:

Error: TesingModulle is currently
Unavailable.
DotNetNuke. services. exceptions. moduleLoadException: Object reference not set to an instance of an object. ---> System. nullReferenceException: Object reference not set to an instance of an object. at YourCompany. modules. testingModule. viewTestingModule. lstContent_ItemDataBound (Object sender, DataListItemEventArgs e) in e: \ Development \ DotNetNuke_4.3.5_Source \ Website \ topics topmodules \ TestingModule \ ViewTestingModule. ascx. cs: line 136 at System. web. UI. webControls. dataList. onItemDataBound (DataListItemEventArgs e) at System. web. UI. webControls. dataList. createItem (Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System. web. UI. webControls. dataList. createControlHierarchy (Boolean useDataSource) at System. web. UI. webControls. baseDataList. onDataBinding (EventArgs e) at System. web. UI. webControls. baseDataList. dataBind () at YourCompany. modules. testingModule. viewTestingModule. page_Load (Object sender, EventArgs e) in e: \ Development \ DotNetNuke_4.3.5_Source \ Website \ topics topmodules \ TestingModule \ ViewTestingModule. ascx. cs: line 115 --- End of inner exception stack trace --- A simple solution is introduced for this error:

If this prompt appears, it does not mean that the module is completely unavailable. Click the triangle in the upper left corner to go to the "Settings" Page and click the corresponding Settings section of the module, enter "[CONTENT]" in "Template" and update it. Then, the module can run normally and a patch will be made at a time.

Related Article

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.