azure - 在 Azure 中运行 Sitecore 7.2 时出现问题

标签 azure sitecore sitecore7.2 sitecore-azure

我在 Azure 中运行两个 Sitecore 7.2 网站,其中一个是测试,另一个是生产。这些站点是彼此的副本,唯一的区别是产品有一个公共(public) URL。他们使用相同的数据库和usr/pwd。

将所有内容从测试复制到产品后,产品站点在用户尝试登录 Sitecore 后开始抛出错误。看起来 Sitecore 试图创建支持票证,但我无法弄清楚该错误的真正含义。 如有任何帮助,我们将不胜感激。

这是错误消息

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

Could not load file or assembly 'file:///D:\home\site\wwwroot\bin\Sitecore.Support.400292.400293.dll' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'file:///D:\home\site\wwwroot\bin\Sitecore.Support.400292.400293.dll' or one of its dependencies. The system cannot find the file specified.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'file:///D:\home\site\wwwroot\bin\Sitecore.Support.400292.400293.dll' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace: 

[FileNotFoundException: Could not load file or assembly 'file:///D:\home\site\wwwroot\bin\Sitecore.Support.400292.400293.dll' or one of its dependencies. The system cannot find the file specified.]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
   System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark) +102
   System.Reflection.Assembly.LoadFrom(String assemblyFile) +34
   Sitecore.Reflection.ReflectionUtil.LoadAssembly(String name) +222
   Sitecore.Reflection.ReflectionUtil.CreateObject(String assembly, String className, Object[] parameters) +11
   Sitecore.Reflection.ReflectionUtil.CreateObject(String typeName, Object[] parameters) +126
   Sitecore.Shell.Framework.Commands.CommandManager.ReadCommands() +467
   Sitecore.Shell.Framework.Commands.CommandManager..cctor() +50

[TypeInitializationException: The type initializer for 'Sitecore.Shell.Framework.Commands.CommandManager' threw an exception.]
   Sitecore.Shell.Framework.Commands.CommandManager.GetCommand(String name) +0
   Sitecore.Web.UI.HtmlControls.Menu.GetCommand(String message) +69
   Sitecore.Web.UI.HtmlControls.Menu.AddMenuItem(Control parent, Item child, String target, CommandContext context) +181
   Sitecore.Web.UI.HtmlControls.Menu.AddFromDataSource(Item item, Control parent, String target, CommandContext context) +355
   Sitecore.Web.UI.HtmlControls.Menu.AddFromDataSource(Item item, String target) +52
   Sitecore.Web.UI.HtmlControls.DataContextMenu.OnLoad(EventArgs e) +57
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

最佳答案

这不是创建支持票证,而是逐字逐句地说明您需要了解的内容。它缺少一个文件,并且期望在 D:\home\site\wwwroot\bin\Sitecore.Support.400292.400293.dll 中找到该文件

检查此 dll 的配置文件。对我来说,这似乎是 web.config 转换出错了(因为 sitecore 支持 DLL 通常不包含 2 个问题号。

关于azure - 在 Azure 中运行 Sitecore 7.2 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24061699/

相关文章:

c# - 为什么我的异常处理程序没有在 Sitecore.mvc.Pipelines 中触发?

c# - Sitecore 动态占位符允许渲染

c# - 如何使用原始值而不是掩码值将修改后的掩码值保存到azure SQL数据库中?

performance - 使用部分 RowKey 时是否会对 Azure 表存储的查询建立索引?

azure - 从 Angular 前端调用 Azure AD 安全 Web API

Sitecore 多站点实现

c# - Sitecore 7.2 - 项目 Web API - 用户身份验证

sitecore - 在某些工作流程操作期间将 Sitecore 验证应用于模板

sitecore - 我可以在富文本编辑器配置文件上为图像插入按钮设置根文件夹吗?

azure - 用户流 "Sign in v2"的 AD B2C forceChangePasswordNextLogin 不会启动密码重置并阻止成功登录