zoukankan      html  css  js  c++  java
  • Unhandled Exception: System.ArgumentNullException: Value cannot be null.

    .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:公司WisdomMedicalaspnet-coresrcWisdomMedical.Web.HostStartupAuthConfigurer.cs:line 17
    at WisdomMedical.Web.Host.Startup.Startup.ConfigureServices(IServiceCollection services) in D:公司WisdomMedicalaspnet-coresrcWisdomMedical.Web.HostStartupStartup.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:公司WisdomMedicalaspnet-coresrcWisdomMedical.Web.HostStartupProgram.cs:line 15
    at WisdomMedical.Web.Host.Startup.Program.Main(String[] args) in D:公司WisdomMedicalaspnet-coresrcWisdomMedical.Web.HostStartupProgram.cs:line 10

    D:公司WisdomMedicalaspnet-coresrcWisdomMedical.Web.HostinDebug etcoreapp2.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:公司WisdomMedicalaspnet-coresrcWisdomMedical.Web.HostStartupAuthConfigurer.cs:line 17
    at WisdomMedical.Web.Host.Startup.Startup.ConfigureServices(IServiceCollection services) in D:公司WisdomMedicalaspnet-coresrcWisdomMedical.Web.HostStartupStartup.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:公司WisdomMedicalaspnet-coresrcWisdomMedical.Web.HostStartupProgram.cs:line 15
    at WisdomMedical.Web.Host.Startup.Program.Main(String[] args) in D:公司WisdomMedicalaspnet-coresrcWisdomMedical.Web.HostStartupProgram.cs:line 10

  • 相关阅读:
    1027: C语言程序设计教程(第三版)课后习题7.5
    1026: C语言程序设计教程(第三版)课后习题7.4数组排序
    1025: C语言程序设计教程(第三版)课后习题7.3
    求n之内素数
    迭代
    Java入门:char与byte的区别
    使用MyEclipse 2014创建项目
    Java入门:MyEclipse安装与破解教程
    Java入门:JDK与Eclipse之类的集成开发工具的关系
    Java入门:Java环境变量PATH、CLASSPATH、JAVA_HOME
  • 原文地址:https://www.cnblogs.com/topguntopgun/p/13180093.html
Copyright © 2011-2022 走看看