在localhost中查看sitefinity站点时出现问题

时间:2011-01-24 08:21:43

标签: asp.net localhost sitefinity

我目前正在使用sitefinity 3.7的网站上工作。使用source safe将文件复制到我的硬盘驱动器后,当出现以下错误时,我尝试在localhost中查看该页面:


应用程序中的服务器错误。

无法加载文件或程序集'Telerik.Cms.Engine,Version = 3.1.3311.24714,Culture = neutral,PublicKeyToken = 85fd314cb21bc432'或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (HRESULT异常:0x80131040)

描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.IO.FileLoadException:无法加载文件或程序集“Telerik.Cms.Engine,Version = 3.1.3311.24714,Culture = neutral,PublicKeyToken = 85fd314cb21bc432”或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (HRESULT异常:0x80131040)

来源错误:

在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。 程序集加载跟踪:以下信息有助于确定无法加载程序集“Telerik.Cms.Engine,Version = 3.1.3311.24714,Culture = neutral,PublicKeyToken = 85fd314cb21bc432”的原因。

警告:装配绑定日志记录已关闭。 要启用程序集绑定失败日志记录,请将注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)设置为1。 注意:程序集绑定失败日志记录会导致一些性能损失。 要关闭此功能,请删除注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog]。

堆栈追踪:

[FileLoadException:无法加载文件或程序集'Telerik.Cms.Engine,Version = 3.1.3311.24714,Culture = neutral,PublicKeyToken = 85fd314cb21bc432'或其依赖项之一。定位的程序集的清单定义与程序集引用不匹配。 (HRESULT异常:0x80131040)]    System.Reflection.Assembly._GetType(String name,Boolean throwOnError,Boolean ignoreCase)+0    Telerik.Utilities.TypeResolutionService.GetType(String name,Boolean throwOnError,Boolean ignoreCase)+579    Telerik.Utilities.StringTypeConverter.ConvertFrom(ITypeDescriptorContext context,CultureInfo culture,Object value)+108    Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadAttributes(ConfigElement element,XmlReader reader)+321    Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadElement(ConfigElement元素,XmlReader阅读器,Stack`1堆栈)+761    Telerik.Sitefinity.Configuration.XmlConfigProvider.LoadSection(ConfigSection section)+389    Telerik.Sitefinity.Configuration.ConfigProvider.GetSection()+279    Telerik.Sitefinity.Configuration.ConfigManager.GetSection()+ 104    Telerik.Framework.Web.ControlUtils..cctor()+64

[TypeInitializationException:'Telerik.Framework.Web.ControlUtils'的类型初始值设定项引发异常。]    Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath)+0    Telerik.Search.WebControls.SearchBox.get_LayoutTemplate()+50    Telerik.Search.WebControls.SearchBox.CreateChildControls()+90    System.Web.UI.Control.EnsureChildControls()+ 146    System.Web.UI.Control.PreRenderRecursiveInternal()+ 61    System.Web.UI.Control.PreRenderRecursiveInternal()+ 224    System.Web.UI.Control.PreRenderRecursiveInternal()+ 224    System.Web.UI.Control.PreRenderRecursiveInternal()+ 224    System.Web.UI.Control.PreRenderRecursiveInternal()+ 224    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+3394

版本信息:Microsoft .NET Framework版本:2.0.50727.4952; ASP.NET版本:2.0.50727.4955


我尝试过的事情:

  • 更改文件夹(DefaultAppPool和网络服务)的权限
  • 再次获取该网站的最新版本。
  • 检查web.config并重新配置连接字符串以指向数据库(可能不相关)
  • 重新编译网站 - 无需修复

有没有人遇到过这个问题?

谢谢!

彼得

1 个答案:

答案 0 :(得分:1)

这是一个无法找到Sitefinity程序集的正确版本或根本找不到程序集的问题。您是否在源代码管理中拥有应用程序的BIN文件夹?如果您在项目中显示完整的文件列表,我可以提供更好的帮助。你确定你没有针对另一个版本的Sitefinity进行编译吗?

相关问题