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.