C# 无法识别的属性disableAlternativeTemplates

C# 无法识别的属性disableAlternativeTemplates,c#,asp.net-mvc,web-config,umbraco7,C#,Asp.net Mvc,Web Config,Umbraco7,不幸的是,我在解决方案中添加了来自另一个项目的引用,而不是仅复制粘贴库,因此我认为我的程序集被覆盖了 现在我得到了这个错误,我认为它来自翁布拉科 这里有人有同样的问题吗 Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request.

不幸的是,我在解决方案中添加了来自另一个项目的引用,而不是仅复制粘贴库,因此我认为我的程序集被覆盖了

现在我得到了这个错误,我认为它来自翁布拉科

这里有人有同样的问题吗

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Unrecognized attribute 'disableAlternativeTemplates'. Note that attribute names are case-sensitive.

Source Error: 


An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Source File: D:\WWW\website\config\umbracoSettings.config    Line: 153 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249

我刚刚遇到了完全相同的问题,但是发现如果您用原始的文件覆盖现有的Umbraco DLL,它会修复它


伊恩

在浪费了大量的时间之后,我也无法解决这个问题,即使在遵循了伊恩的上述建议之后。我通过将7.1.6站点升级到7.4.3引入了这个问题。我通过Nuget每3或4个版本进行一次增量升级,但我犯的错误是在升级之间没有运行该站点

运行站点更新配置文件、数据库值等,跳过这一步是我的致命一击。所以我想这不是一个真正的解决方案,但更多的是你如何预防它


顺便说一句,我回去再次升级(实际上版本之间有更大的跳跃),每次升级后都运行该网站,并且运行得非常顺利。

不幸的是,我无法找到解决此错误的方法。幸运的是,我有一个备份我的网站,我恢复了,所以该网站是再次工作。