我在试图安装我的轮椅时,没有发现任何错误。
这里是我全球的守则。 页: 1
_container = new WindsorContainer();
_container.Register(Component.For<IWindsorContainer>().Instance(_container))
.AddFacility<WcfFacility>()
.Install(Configuration.FromAppConfig())
.Install(FromAssembly.InDirectory(new AssemblyFilter(HttpRuntime.BinDirectory, "Web*.dll")));
这里是我的系统。 网上服务模块:
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<client>
<endpoint address="http://commandservice.website.com/WebsiteCommandService.svc" binding="basicHttpBinding" contract="CommandService.IWebsiteCommandService" name="commandServiceClient"></endpoint>
</client>
</system.serviceModel>
这里是我的城堡座(在网上)。
<castle>
<components>
<component
id="commandService"
type="CommandService.WebsiteCommandService, CommandService"
wcfEndpointConfiguration="commandServiceClient" />
</components>
</castle>
我失踪了一点明显吗?
最新资料:
这里的痕迹是:
[InvalidOperationException: Sequence contains no elements]
System.Linq.Enumerable.Single(IEnumerable`1 source) +371
Castle.Facilities.WcfIntegration.WcfClientExtension.ObtainServiceContract(ComponentModel model, IWcfClientModel clientModel) in c:TeamCityuildAgentworka19756d977ce9d2csrcCastle.Facilities.WcfIntegrationClientWcfClientExtension.cs:239
Castle.Facilities.WcfIntegration.WcfClientExtension.ResolveClientModel(ComponentModel model) in c:TeamCityuildAgentworka19756d977ce9d2csrcCastle.Facilities.WcfIntegrationClientWcfClientExtension.cs:234
Castle.Facilities.WcfIntegration.WcfClientExtension.Kernel_ComponentModelCreated(ComponentModel model) in c:TeamCityuildAgentworka19756d977ce9d2csrcCastle.Facilities.WcfIntegrationClientWcfClientExtension.cs:189
Castle.MicroKernel.ComponentModelDelegate.Invoke(ComponentModel model) +0
Castle.MicroKernel.DefaultKernel.AddCustomComponent(ComponentModel model, Boolean isMetaHandler) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelDefaultKernel.cs:281
Castle.MicroKernel.DefaultKernel.Register(IRegistration[] registrations) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelDefaultKernel.cs:536
Castle.Windsor.WindsorContainer.Register(IRegistration[] registrations) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorWindsorWindsorContainer.cs:482
Castle.Windsor.Installer.DefaultComponentInstaller.SetUpComponents(IConfiguration[] configurations, IWindsorContainer container, IConversionManager converter) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorWindsorInstallerDefaultComponentInstaller.cs:211
Castle.Windsor.WindsorContainer.Install(IWindsorInstaller[] installers, DefaultComponentInstaller scope) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorWindsorWindsorContainer.cs:317
Castle.Windsor.WindsorContainer.Install(IWindsorInstaller[] installers) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorWindsorWindsorContainer.cs:453
Website.MvcApplication.ConfigureContainer() in C:UsersWayne DouglasDevProjectWebsiteWebsiteGlobal.asax.cs:65
Website.MvcApplication.Application_Start() in C:UsersWayne DouglasDevProjectWebsiteWebsiteGlobal.asax.cs:53
[HttpException (0x80004005): Sequence contains no elements]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4052053
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375
[HttpException (0x80004005): Sequence contains no elements]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11686928
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4863749
附录
这个问题似乎有些地方,它像它试图解决这一组成部分一样,因为它是一个正常的物体,而不是一种 w。 避免服务发挥作用——在试图利用 w子解决问题时,在轨迹上有错误:
public WebSiteCommandService(ICommandService service)
{
_service = service;
}
它说,国际商业服务没有任何组成部分。
为什么客户集装箱试图解决这一问题?
就像 w子一样,它正在完全跳出吗?
下面是一栏:
[InstanceNotFoundInEnvironmentConfigurationException: Could not find requested type Ncqrs.Commanding.ServiceModel.ICommandService in the NcqrsEnvironment configuration. Make sure that the NcqrsEnvironment is configured correctly or that defaults are correctly set.]
Ncqrs.NcqrsEnvironment.Get() in C:UsersWayne DouglasDevProjectWebsiteThirdPartyNCQRSsrcNcqrsNcqrsEnvironment.cs:96
CommandService.WebsiteCommandService..cctor() in C:UsersWayne DouglasDevProjectWebsiteCommandServiceWebsiteCommandService.svc.cs:17
[TypeInitializationException: The type initializer for CommandService.WebsiteCommandService threw an exception.]
System.Runtime.Serialization.FormatterServices.nativeGetUninitializedObject(RuntimeType type) +0
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelComponentActivatorDefaultComponentActivator.cs:151
[ComponentActivatorException: ComponentActivator: could not instantiate CommandService.WebsiteCommandService]
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelComponentActivatorDefaultComponentActivator.cs:163
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelComponentActivatorDefaultComponentActivator.cs:116
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelComponentActivatorDefaultComponentActivator.cs:66
Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelComponentActivatorAbstractComponentActivator.cs:80
Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelLifestyleAbstractLifestyleManager.cs:81
Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelLifestyleSingletonLifestyleManager.cs:63
Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelHandlersDefaultHandler.cs:124
Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelHandlersDefaultHandler.cs:98
Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveCore(CreationContext context, ComponentModel model, DependencyModel dependency) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelResolversDefaultDependencyResolver.cs:308
Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelResolversDefaultDependencyResolver.cs:158
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments(ConstructorCandidate constructor, CreationContext context) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelComponentActivatorDefaultComponentActivator.cs:292
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelComponentActivatorDefaultComponentActivator.cs:85
Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelComponentActivatorDefaultComponentActivator.cs:66
Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelComponentActivatorAbstractComponentActivator.cs:80
Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelLifestyleAbstractLifestyleManager.cs:81
Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelLifestyleAbstractLifestyleManager.cs:70
Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelHandlersDefaultHandler.cs:124
Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelHandlersDefaultHandler.cs:98
Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelDefaultKernel.cs:777
Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) in d:BuildAgentwork60b7fa65294e7792srcCastle.WindsorMicroKernelDefaultKernel_Resolve.cs:225
Website.WindsorControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) in C:UsersWayne DouglasDevProjectWebsiteWebsiteWindsorControllerFactory.cs:24
System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +93
System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +346
System.Web.Mvc.<>c__DisplayClass6.<BeginProcessRequest>b__2() +71
System.Web.Mvc.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a() +19
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Func`1 func) +161
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +405
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375