我在我的移动应用程序的WCF项目中使用现有的NopCommerce服务,在本地IIS服务器上托管后,通过浏览,我得到如下的异常......
服务器在处理请求时遇到错误。异常消息是'Value cannot be null. Parameter name: instance'
。请参阅服务器日志以获取更多详异常堆栈跟踪是:
at Autofac.RegistrationExtensions.RegisterInstance [T](ContainerBuilder 建设者,T实例)at Nop.Core.Infrastructure.DependencyManagement.ContainerManager<> c__DisplayClass5.b__4(ContainerBuilder x)at Nop.Core.Infrastructure.DependencyManagement.ContainerManager.UpdateContainer(Action`1 行动) Nop.Core.Infrastructure.DependencyManagement.ContainerConfigurer.Configure(IEngine 引擎,ContainerManager containerManager,NopConfig配置)at Nop.Core.Infrastructure.EngineContext.CreateEngineInstance(NopConfig 配置)在Nop.Core.Infrastructure.EngineContext.Initialize(布尔值 forceRecreate)在Nop.Core.Infrastructure.EngineContext.get_Current() 在NopServicesTest.AuthService..ctor()处 CreateNopServicesTest.AuthService()at System.ServiceModel.InstanceContext.GetServiceInstance(消息 消息) System.ServiceModel.Dispatcher.InstanceBehavior.EnsureServiceInstance(MessageRpc&安培; rpc)at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc&安培; rpc)at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&安培; rpc)at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)