首页 > 其他 > 详细

Unhandled Exception: System.ArgumentNullException: Value cannot be null.

时间:2020-06-23 09:39:12      阅读:313      评论:0      收藏:0      [点我收藏+]

.net core 程序部署,报错,找到程序所在目录运行,否则会报错

 

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: value
at System.Boolean.Parse(String value)
at WisdomMedical.Web.Host.Startup.AuthConfigurer.Configure(IServiceCollection services, IConfiguration configuration) in D:\公司\WisdomMedical\aspnet-core\src\WisdomMedical.Web.Host\Startup\AuthConfigurer.cs:line 17
at WisdomMedical.Web.Host.Startup.Startup.ConfigureServices(IServiceCollection services) in D:\公司\WisdomMedical\aspnet-core\src\WisdomMedical.Web.Host\Startup\Startup.cs:line 58
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at WisdomMedical.Web.Host.Startup.Program.BuildWebHost(String[] args) in D:\公司\WisdomMedical\aspnet-core\src\WisdomMedical.Web.Host\Startup\Program.cs:line 15
at WisdomMedical.Web.Host.Startup.Program.Main(String[] args) in D:\公司\WisdomMedical\aspnet-core\src\WisdomMedical.Web.Host\Startup\Program.cs:line 10

D:\公司\WisdomMedical\aspnet-core\src\WisdomMedical.Web.Host\bin\Debug\netcoreapp2.1>dotnet WisdomMedical.Web.Host.dll

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: value
at System.Boolean.Parse(String value)
at WisdomMedical.Web.Host.Startup.AuthConfigurer.Configure(IServiceCollection services, IConfiguration configuration) in D:\公司\WisdomMedical\aspnet-core\src\WisdomMedical.Web.Host\Startup\AuthConfigurer.cs:line 17
at WisdomMedical.Web.Host.Startup.Startup.ConfigureServices(IServiceCollection services) in D:\公司\WisdomMedical\aspnet-core\src\WisdomMedical.Web.Host\Startup\Startup.cs:line 58
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at WisdomMedical.Web.Host.Startup.Program.BuildWebHost(String[] args) in D:\公司\WisdomMedical\aspnet-core\src\WisdomMedical.Web.Host\Startup\Program.cs:line 15
at WisdomMedical.Web.Host.Startup.Program.Main(String[] args) in D:\公司\WisdomMedical\aspnet-core\src\WisdomMedical.Web.Host\Startup\Program.cs:line 10

Unhandled Exception: System.ArgumentNullException: Value cannot be null.

原文:https://www.cnblogs.com/topguntopgun/p/13180093.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!