type(System.Web.UI.WebControls.Label)与控件类型不兼容(ASP.controls_labelcontrol_ascx)

时间:2015-10-12 08:07:42

标签: asp.net dotnetnuke

以下问题是DotNetNuke相关 - 但在我看来是一个与asp.net相关的错误,我真的很感激每一个提示来解决这个问题。

我遇到以下问题:在我的开发环境(Win 8.1,SqlServer 2008 R2 express,VS2013)中全新安装DotNetNuke 7.4.2后编辑Html模块的内容时,最后显示的异常会引发。在测试环境中安装7.4.2(Win 2K8服务器64位,SqlServer 2008 R2 express)时,编辑模块没有错误,一切正常。

使用空数据库完成安装,修改web.config以指向此数据库并调用http://dnndev.me/install/install.aspx。该网站具有自己的应用程序池,并且应用程序池用户已被授予安装文件夹的必要权限。顺便说一句:从DNN v4开始,这个程序已成功使用(有修改)。

谷歌搜索没有显示太多结果。我试过的是清除“v4.0.30319 \ Temporary ASP.NET Files”文件夹 - 没有成功。

有没有人知道这个错误的原因是什么?

感谢您的想法,  罗伯特

val lst = List(1,2,3,4)
val records = sc.parallelize(lst).zipWithIndex.filter(_._2 > 0).map(_._1)
val records.collect() // Array[Int] = Array(2, 3, 4)

相关的标记代码是

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: 
The base class includes the field 'plCurrentWorkVersion', but its type (System.Web.UI.WebControls.Label) 
is not compatible with the type of control (ASP.controls_labelcontrol_ascx). 
---> System.Web.HttpParseException: The base class includes the field 'plCurrentWorkVersion', 
but its type (System.Web.UI.WebControls.Label) is not compatible with the type of control (ASP.controls_labelcontrol_ascx). 
---> System.Web.HttpParseException: The base class includes the field 'plCurrentWorkVersion', but its type (System.Web.UI.WebControls.Label) 
is not compatible with the type of control (ASP.controls_labelcontrol_ascx). 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() 
at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() 
at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath) 
at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) 
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) 
--- End of inner exception stack trace --- 
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) 
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() 
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) 
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) 
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) 
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) 
at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) 
at DotNetNuke.UI.Modules.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) 
at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() 
--- End of inner exception stack trace ---

2 个答案:

答案 0 :(得分:0)

网站dnndev.me(及其应用程序)之前已用于其他安装。

删除并重新创建网站(暗示应用程序)解决了错误(请注意,创建新的应用程序池是不够的。)

如果有解释,我会非常感激。

编辑:将当前的applicationHost.config与旧版本进行比较显示了错误的原因:还有一个附加条目指向其他旧版本中路径的完全限定名称。这导致了使用两个版本的编译(这是Panagiotis已经写过的)。

答案 1 :(得分:0)

如果您已经删除了该网站,那么检查可能为时已晚,但我会检查该网站下是否有DesktopModules上的Application / VirtualDirectory或其中的任何子文件夹。这是我在Visual Studio中的模板的常见问题,由于某种原因,随机,VS会将这些文件夹转换为单个应用程序,这会导致各种混乱,直到您在IIS中删除该应用程序。