Sitecore 中丢失的 uCommerce 界面

Lost uCommerce interface within Sitecore

我正在使用 SiteCore 8 和 uCommerce 开发 Web 应用程序。要配置 uCommerce,我会通过 Sitecore 并加载 uCommerce 界面。今天早上,我尝试以正常方式加载 uCommerce 界面,即登录到 Sitecore 并加载 uCommerce,但在 Sitecore 中只得到一个白屏。查看浏览器控制台,我可以看到 2 个不同的 500 错误:

Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://local.myapp.co.uk/ucommerceapi/Content/undefined/RootNode Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://local.myapp.co.uk/ucommerceapi/Localization/TranslatedStrings Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://local.myapp.co.uk/ucommerceapi/Content/tree/RootNode Failed to load resource: the server responded with a status of 500 (Internal Server Error)

如果我点击错误中的 url,我会得到一个显示的页面:

Server Error in '/' Application.

Value cannot be null. Parameter name: EndpointHost.Config

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.ArgumentNullException: Value cannot be null. Parameter name: EndpointHost.Config

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.

Stack Trace:

[ArgumentNullException: Value cannot be null. Parameter name: EndpointHost.Config]

[ConfigurationErrorsException: ServiceStack: AppHost does not exist or has not been initialized. Make sure you have created an AppHost and started it with 'new AppHost().Init();' in your Global.asax Application_Start()]
ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory..cctor() +836

[TypeInitializationException: The type initializer for 'ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory' threw an exception.]
ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory..ctor() +0

[TargetInvocationException: Exception has been thrown by the target of an invocation.] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +159
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256 System.Activator.CreateInstance(Type type, Boolean nonPublic) +127 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14297981
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +198 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +83 System.Web.Configuration.HandlerFactoryCache..ctor(String type) +57 System.Web.HttpApplication.GetFactory(String type) +94
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +375 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

我试过重新创建 Global.asax,我试过替换所有 sitecore 文件夹:

  1. sitecore
  2. sitecore modules
  3. sitecore_files

    App_Config 文件夹使用来自同事机器的文件,该机器工作正常但运气不好。我可以将我同事的解决方案复制到我的 PC 上,它工作正常(除了他有 none 我完成的工作)

任何人都可以阐明问题所在吗?

以防其他人遇到这个问题。我从 IIS 中删除了该网站,然后重新创建了它,问题就消失了。我不知道为什么这解决了这个问题,因为我已经好几天没有在 IIS 中做任何更改了。