【问题标题】:Lost uCommerce interface within SitecoreSitecore 中丢失的 uCommerce 界面
【发布时间】:2015-06-05 11:54:36
【问题描述】:

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

加载资源失败:服务器响应状态为 500 (内部服务器错误) http://local.myapp.co.uk/ucommerceapi/Content/undefined/RootNode 加载资源失败:服务器响应状态为 500 (内部服务器错误) http://local.myapp.co.uk/ucommerceapi/Localization/TranslatedStrings 加载资源失败:服务器响应状态为 500 (内部服务器错误) http://local.myapp.co.uk/ucommerceapi/Content/tree/RootNode 失败 加载资源:服务器响应状态为 500(内部 服务器错误)

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

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

值不能为空。参数名称:EndpointHost.Config

描述:执行过程中发生了未处理的异常 当前的网络请求。请查看堆栈跟踪以获取更多信息 有关错误的信息以及它在代码中的来源。

异常详细信息:System.ArgumentNullException:值不能为空。 参数名称:EndpointHost.Config

来源错误:

在执行过程中产生了一个未处理的异常 当前的网络请求。有关原产地和位置的信息 可以使用下面的异常堆栈跟踪来识别异常。

堆栈跟踪:

[ArgumentNullException:值不能为空。参数名称: EndpointHost.Config]

[ConfigurationErrorsException: ServiceStack: AppHost 不存在或 尚未初始化。确保您已经创建了一个 AppHost 和 以 'new AppHost().Init();' 开始在你的 Global.asax Application_Start()]
ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory..cctor() +836

[TypeInitializationException: 的类型初始化器 'ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory' 抛出 例外。]
ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory..ctor() +0

[TargetInvocationException: 异常已被目标抛出 调用。] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(布尔 publicOnly,布尔 skipCheckThis、布尔填充缓存、StackCrawlMark 和 stackMark)+159
System.RuntimeType.CreateInstanceDefaultCtor(布尔 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 文化, Object[] activationAttributes, StackCrawlMark& stackMark) +14297981
System.Activator.CreateInstance(类型类型,BindingFlags bindingAttr, Binder 活页夹、Object[] 参数、CultureInfo 文化、Object[] 激活属性)+198 System.Activator.CreateInstance(类型 类型,BindingFlags bindingAttr,Binder binder,Object[] args, CultureInfo 文化)+28
System.Web.HttpRuntime.CreateNonPublicInstance(类型类型,对象 [] 参数)+83 System.Web.Configuration.HandlerFactoryCache..ctor(字符串 类型)+57 System.Web.HttpApplication.GetFactory(字符串类型)+94
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +375 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

我已尝试重新创建 Global.asax,已尝试替换所有站点核心文件夹:

  1. sitecore
  2. sitecore modules
  3. sitecore_files

    App_Config 文件夹使用来自同事机器的文件,该机器工作正常但不走运。我可以将我同事的解决方案复制到我的电脑上,它工作正常(除了他没有我做过的工作)

谁能说明问题可能是什么?

【问题讨论】:

    标签: c# sitecore sitecore8 umbraco-ucommerce


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-30
      相关资源
      最近更新 更多