Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net web api Autofac的招摇过市问题_Asp.net Web Api_Autofac_Swagger - Fatal编程技术网

Asp.net web api Autofac的招摇过市问题

Asp.net web api Autofac的招摇过市问题,asp.net-web-api,autofac,swagger,Asp.net Web Api,Autofac,Swagger,由于Autofac和招摇过市,我正在努力解决一个问题。当我尝试访问招摇过市UI时,我有一个例外: 500:{“消息”:“发生错误。”,“异常消息”: “没有找到具有 类型上的“Autofac.Core.Activators.Reflection.DefaultConstructorFinder” 'MRV.EntregaChaves.PEC.Api.Areas.HelpPage.XmlDocumentationProvider' 可以使用可用的服务和参数调用:\r\n无法 解析构造函数“Void

由于Autofac和招摇过市,我正在努力解决一个问题。当我尝试访问招摇过市UI时,我有一个例外:

500:{“消息”:“发生错误。”,“异常消息”: “没有找到具有 类型上的“Autofac.Core.Activators.Reflection.DefaultConstructorFinder” 'MRV.EntregaChaves.PEC.Api.Areas.HelpPage.XmlDocumentationProvider' 可以使用可用的服务和参数调用:\r\n无法 解析构造函数“Void”的参数“System.String documentPath” .ctor(System.String)“,”异常类型“: “Autofac.Core.DependencyResolutionException”、“stackTrace”:“在 Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext 上下文,IEnumerable
1参数)\r\n位于
Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 参数)\r\n位于Autofac.Core.Resolving.InstanceLookup.Execute()\r\n 在 Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(iShareInLiFeTimeScope 当前操作范围,IComponentRegistration, IEnumerable
1参数)\r\n位于
Autofac.Core.Resolving.ResolveOperation.ResolveComponent(IComponentRegistration
注册,IEnumerable
1参数)\r\n位于 Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration 注册,IEnumerable
1参数)\r\n位于
Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration
注册,IEnumerable
1参数)\r\n位于 Autofac.Core.Container.ResolveComponent(IComponentRegistration 注册,IEnumerable
1参数)\r\n位于
Autofac.ResolutionExtensions.TryResolveService(IComponentContext
上下文,服务,IEnumerable
1参数,对象& 实例)\r\n位于 Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext 上下文、服务、IEnumerable
1参数)\r\n位于
Autofac.ResolutionExtensions.ResolveOptional(IComponentContext
上下文,类型serviceType,IEnumerable
1参数)\r\n位于 Autofac.ResolutionExtensions.ResolveOptional(IComponentContext 上下文,类型serviceType)\r\n位于 Autofac.Integration.WebApi.AutofacWebAPI DependencyScope.GetService(类型 服务类型)\r\n位于 Autofac.Integration.WebApi.AutofacWebAPI依赖解析程序.GetService(类型 服务类型)\r\n位于 System.Web.Http.Services.DefaultServices.GetService(类型 服务类型)\r\n位于 System.Web.Http.ServicesExtensions.GetService[TService](ServicesContainer) 服务)\r\n位于 System.Web.Http.ServicesExtensions.GetDocumentationProvider(ServicesContainer 服务)\r\n位于 System.Web.Http.Description.ApiExplorer.GetApiDocumentation(HttpActionDescriptor actionDescriptor)\r\n位于 System.Web.Http.Description.ApiExplorer.PopulateActionDescriptions(HttpActionDescriptor actionDescriptor,IHttpRoute路由,字符串localPath,集合
1
APIRescriptions)\r\n位于
System.Web.Http.Description.ApiExplorer.explorerDirectRoute(HttpControllerDescriptor
控制员描述人,候选人行动[]候选人,IHttpRoute
路由)\r\n位于
System.Web.Http.Description.ApiExplorer.InitializeAppideDescriptions()\r\n
位于System.Lazy
1.CreateValue()\r\n--上一个 引发异常的位置---\r\n System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n位于 System.Lazy`1.get\u Value()\r\n位于 System.Web.Http.Description.ApiExplorer.get\u apisdescriptions()\r\n位于 Swashback.Swagger.SwaggerGenerator.GetApDescriptionsfor(字符串 apiVersion)\r\n位于 Swashback.Swagger.SwaggerGenerator.GetSwagger(字符串根URL,字符串 apiVersion)\r\n位于 Swashback.Application.SwaggerDocsHandler.SendAsync(HttpRequestMessage 请求,CancellationToken CancellationToken)\r\n位于 System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage 请求,CancellationToken CancellationToken)\r\n位于 System.Web.Http.Dispatcher.HttpRoutingDispatcher.SendAsync(HttpRequestMessage 请求,CancellationToken CancellationToken)\r\n位于 System.Net.Http.DelegatingHandler.SendAsync(HttpRequestMessage 请求,CancellationToken CancellationToken)\r\n位于 System.Web.Http.HttpServer.n_u编造方法9(HttpRequestMessage, 取消令牌)\r\n位于 System.Web.Http.HttpServer.d_u0.MoveNext()“}


我能够解决github官方代理的问题


这个问题是奥文造成的。我没有安装软件包
Swashback.Core

我能够解决官方github代理的问题


这个问题是奥文造成的。我错过了安装软件包
swashback.Core

你应该发布你正在挣扎的代码。没有代码!我刚刚安装了nuget包,它已经完成了self-config.Post的self-config代码。如果不可能重现错误,就无法提供帮助。或者至少告诉我们要下载哪些NuGet软件包和版本,才能重现这个例外。你应该发布你正在努力解决的代码。没有代码!我刚刚安装了nuget包,它已经完成了self-config.Post的self-config代码。如果不可能重现错误,就无法提供帮助。或者至少告诉我们要下载哪些NuGet软件包和版本,以便能够重现此异常