9.1.1上的DNN HTML模块抛出以下错误

时间:2017-07-16 20:32:55

标签: dotnetnuke dotnetnuke-9

自应用最新的关键安全更新以来,所有包含HTML模块的页面都会抛出以下错误,从而为用户生成404页面。请指教!我们可以使用一个很好的替换模块吗?

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS0103: The name 'ModuleContext' does not exist in the current context

Source Error:


Line 41:             {
Line 42:                 var wasReplacing = false;
Line 43:                 ModuleContext.Settings["MyTokensReplace"] = false;
Line 44:                 if (ModuleContext.Settings["TEXTHTML_ReplaceTokens"] != "") {
Line 45:                    if (Convert.ToBoolean(ModuleContext.Settings["TEXTHTML_ReplaceTokens"]) == true) {

1 个答案:

答案 0 :(得分:-1)

这似乎与MyTokens模块有关。在这里查看他们网站上的帖子:

https://www.dnnsharp.com/helpcenter/case/62435