腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
System.ArgumentNullException
:
值
不
能为
null
。(
参数
'
connectionString
')
c#
、
entity-framework
、
asp.net-core
AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) //var
ConnectionString
= "ServeroptionsBuilder = new DbC
浏览 36
提问于2021-03-12
得票数 1
2
回答
System.ArgumentNullException
:‘
值
不
能为
空。(
参数
'
connectionString
')’
asp.net-mvc
、
asp.net-core
await context.Response.WriteAsync("Hello World"); 我检查了“
ConnectionString
,更改了连接字符串在appsetting.json文件中的位置,而不是只在Configuration.GetConnectionString()中在Startup.cs中写入连接字符串的名称,我将整个
ConnectionString
浏览 2
提问于2020-06-26
得票数 1
回答已采纳
1
回答
503服务不可用于linux服务器上的Asp dotnet核心2.0 web应用程序
c#
、
angular6
、
ubuntu-18.04
、
kestrel-http-server
、
asp.net-core-2.2
. --->
System.ArgumentNullException
: Value cannot be
null
.Parameter name:
connectionString
{
浏览 0
提问于2018-12-17
得票数 0
回答已采纳
1
回答
System.ArgumentNullException
:‘
值
不
能为
空。(
参数
'
connectionString
')’2
c#
这一行在我的项目中导致了一个错误:错误: 我在网上读过一堆类似的问题,我找不到一个可行的改变。UseSqlServer()中的
参数
似乎正在返回
null
。这使我
浏览 8
提问于2021-08-06
得票数 1
回答已采纳
2
回答
如何在启动时失败应用程序
c#
、
asp.net-core
、
.net-core
"] ==
null
) return; 抛出异常 应用程序启动异常:
System.ArgumentNullException
: Value不
能为
空。
参数
名称:设置:在Xena.IdentityServer.Startup.ConfigureServices(IServiceCollection服务中未正确定义的
connectionString
(在C:
System.ArgumentNullException
: V
浏览 1
提问于2018-10-31
得票数 1
回答已采纳
1
回答
xUnit TestServer MVC核心
c#
、
testing
、
asp.net-core
、
xunit
、
fact
这是错误消息 private readonly HttpClient client; public
浏览 2
提问于2018-07-04
得票数 2
回答已采纳
2
回答
如果
值
在环境变量中,EFCore“
值
不
能为
空。(
参数
'
connectionString
')”
asp.net-core
、
environment-variables
、
connection-string
、
.net-5
、
ef-core-5.0
= Configuration.GetConnectionString("MyWebApp"); /// <<< HERE errorNumbersToAdd:
null
如果我将连接字符串放入appsettings.Production.json 中,则站点运行良好,但一旦删除并放
浏览 3
提问于2021-06-02
得票数 0
回答已采纳
1
回答
Fluent NHibernate Server 2012
c#
、
asp.net
、
sql-server
、
sql-server-2012
、
fluent-nhibernate
我正在开发一个.net项目,在运行我的项目时,我使用了第一次使用fluent nhibernate的Server 2012,得到了下面的错误=> 描述:在执行当前web请求时发生了未处理的异常。请查看堆栈跟踪以获得有关错误的更多信息,以及它起源于代码的位置。异常详细信息:
System.ArgumentNullException
: Value不
能为
空。
参数
名称:数据源 Fluently.Configure() .Databa
浏览 0
提问于2014-10-11
得票数 3
回答已采纳
1
回答
我的要求是需要从azure数据工厂更新oracle表。
oracle
、
azure
、
azure-data-factory
、
azure-data-factory-2
属性“”的 ErrorCode=InvalidParameter,Message=The
值
无效:“
值
不
能为
空,
参数
名:列”,Source=,‘Type=
System.ArgumentNullException
,Message=Value不
能为
空。查询:- SET JOB=
NULL
, SALARY=0 WHERE WORKDEPT = 'E21'
浏览 3
提问于2021-02-16
得票数 0
1
回答
当我在ins asp.net核心3.1中获取这个错误
值
时,它不
能为
空。(
参数
'
connectionString
')
c#
、
asp.net-core
、
model-view-controller
System.ArgumentNullException
:‘
值
不
能为
空。(
参数
'
connectionString
') 我收到了这个错误,我认为这个问题是由appsetting.json引起的,但我找不到它 "AllowedHosts": "*", "
ConnectionString
浏览 13
提问于2020-11-18
得票数 3
1
回答
添加迁移提供的
值
不
能为
空。(
参数
'
connectionString
')
entity-framework
、
entity-framework-migrations
builder.Services.AddIdentity<IdentityUser, IdentityRole>().AddEntityFrameworkStores<AuthDbContext>(); 我试图添加迁移,但不知道为什么会出现这个错误--
System.ArgumentNullException
: Value不
能为
空。( Microsoft.EntityFrameworkCore.Utilities.Check.NotEmpty(String
值
处的
参数
‘
connectionSt
浏览 2
提问于2021-12-29
得票数 0
回答已采纳
3
回答
ASP.NET核心2.2在设置DBContext时出错(在Kestrel中工作,而不是在IIS中工作)
c#
、
iis
、
asp.net-core
、
kestrel
Configuration.GetConnectionString("DefaultDatabase"))); 连接字符串显然是在appsettings.json文件中设置的,还是Kestrel也会失败?
浏览 0
提问于2019-01-23
得票数 0
回答已采纳
2
回答
断言特定异常消息的MSTest单元测试
c#
、
unit-testing
、
exception
、
mstest
、
argumentnullexception
; //pass FilePath
Null
Message: Assert.AreEqual failed.Expected:
浏览 12
提问于2020-04-28
得票数 2
回答已采纳
1
回答
在迁移
System.ArgumentNullException
: Value不
能为
null
期间发生了错误。(
参数
'
connectionString
')
c#
、
linux
、
.net-core
、
centos7
、
connection-string
netcore/MyService.dll An Error has occured during the migrations at Microsoft.EntityFrameworkCore.Utilities.Check.NotEmpty(Stringat MyS
浏览 6
提问于2022-02-27
得票数 0
回答已采纳
3
回答
IEnumerable函数返回空
值
,导致
值
不
能为
空异常
c#
GetAll返回一个IEnumerable,在本例中是
null
我收到一个错误,如下所示: 这是意料之中的吗?在执行ToList()之前,应该始终检查
null
吗?
浏览 0
提问于2018-03-22
得票数 2
回答已采纳
1
回答
System.ArgumentNullException
:
值
不
能为
null
c#
、
asp.net-mvc-3
、
unit-testing
、
razor
我正在为我的CRUD创建一个单元测试,并且在我的Delete测试方法中收到这样的错误:
System.ArgumentNullException
: Value cannot be
null
.
浏览 0
提问于2012-10-09
得票数 2
回答已采纳
1
回答
ArgumentNullException:
值
不
能为
null
。
参数
名称:
connectionString
c#
、
active-directory
、
ldap
、
asp.net-core-2.0
我已经从github克隆了代码。该代码允许根据Active Directory对用户进行身份验证。更多
浏览 100
提问于2019-06-25
得票数 -3
回答已采纳
1
回答
运行两个程序的Appsettings.json get字符串
c#
、
.net-core
、
asp.net-core-mvc
类型为“
System.ArgumentNullException
”的异常发生在Microsoft.EntityFrameworkCore.SqlServer.dll中,但未在用户代码中处理:“
值
不
能为
空我的代码:这在我使用debug运行两个项目之后发生如何从appsettings.json获得字符串,而
不
创建新的appsetti
浏览 0
提问于2020-03-02
得票数 3
1
回答
具有统一的Web核心项目
c#
、
macos
、
asp.net-core
、
unity-container
、
asp.net-core-webapi
<ApplicationContext>(opts => 应用程序启动异常:
System.ArgumentNullException
: Value不
能为
空。:
值
不
能为
空。的源
System.ArgumentNullException
:
浏览 2
提问于2018-02-06
得票数 3
回答已采纳
1
回答
具有动态连接字符串的NLog blob存储扩展
runtime
、
azure-blob-storage
、
connection-string
、
nlog
" name="simple-log-target" blobName="${var:simple-log-file-name}" container="${var:blob-container}"
connectionString
此时nlog无法在 错误AzureBlobStorageTarget(Name=simple-log-target):未能使用
connectionString
=创建BlobClient。异常:
System.ArgumentNullException<
浏览 2
提问于2021-03-02
得票数 0
回答已采纳
点击加载更多
相关
资讯
Kotlin与Java 如何解决 Null 问题?
kotlin 新贵
SQL语句建立索引不走索引的几种情况
瞧瞧别人家的判空,那叫一个优雅!
Slickflow.NET 开源工作流引擎基础介绍-.NET Core2.0 版本实现介绍
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
云点播
活动推荐
运营活动
广告
关闭
领券