简体   繁体   English

Visual Studio 2019 中的错误消息“值不能为空。参数名称:docData”

[英]Error Message "Value cannot be null. Parameter name: docData" in Visual Studio 2019

I used the Windows Forms App (.NET Core) to work a project for my computer problem solving class.我使用 Windows 窗体应用程序 (.NET Core) 为我的计算机问题解决课程创建了一个项目。 However, when I tried to add an image to my picture box I received the following error.但是,当我尝试将图像添加到我的图片框时,我收到以下错误。

Value cannot be null.值不能为空。 Parameter name: docData参数名称:docData

I'm very new to the program, so I'm unsure on how to proceed.我对这个程序很陌生,所以我不确定如何继续。 I did a google search for the issue, but I couldn't find anything that would work for my version of Visual Studio.我对该问题进行了谷歌搜索,但找不到任何适用于我的 Visual Studio 版本的内容。

If you need more information let me know.如果您需要更多信息,请告诉我。 I don't understand the nature of the error so I'm not sure what additional information to add.我不明白错误的性质,所以我不确定要添加哪些附加信息。

The problem is you are missing a resource file.问题是您缺少资源文件。 Adding the resource file will solve the problem.添加资源文件即可解决问题。

Here is how you can add a resource file:添加资源文件的方法如下:

https://docs.microsoft.com/en-us/visualstudio/sharepoint/how-to-add-a-resource-file?view=vs-2019 https://docs.microsoft.com/en-us/visualstudio/sharepoint/how-to-add-a-resource-file?view=vs-2019

Accept this as an answer if it solves your problem.如果它解决了您的问题,请接受它作为答案。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复 Entity Framework Core 错误“值不能为空。参数名称:frameworkName”? - How to fix Entity Framework Core error "Value cannot be null. Parameter name: frameworkName"? SignalR 值不能为 null。(参数“用户名”) - SignalR Value cannot be null. (Parameter 'userName') 值不能为空。 参数名称:connectionstring-尝试从SQLITE切换到MSSQL时 - Value cannot be null. Parameter Name: connectionstring - when trying to switch to MSSQL from SQLITE 值不能为空。 尝试使用 JsonConverter .net core 3.1 反序列化对象时出现(参数“值”)错误 - Value cannot be null. (Parameter 'value') error when trying to DeserializeObject using JsonConverter .net core 3.1 为什么 JsonConvert.DeserializeObject 返回错误:异常:值不能为空。 (参数“来源”) - Why does JsonConvert.DeserializeObject return an error: Exception: Value cannot be null. (Parameter 'source') Moq,测试方法返回错误 - System.ArgumentNullException:值不能为空。 (参数“来源”) - Moq, test method return error - System.ArgumentNullException: Value cannot be null. (Parameter 'source') 迁移期间发生错误 System.ArgumentNullException:值不能为 null。(参数“connectionString”) - An Error has occured during the migrations System.ArgumentNullException: Value cannot be null. (Parameter 'connectionString') EF Core - 值不能为空。 (参数'键') - EF Core - Value cannot be null. (Parameter 'key') Winform: System.ArgumentNullException: '值不能为空。 (参数'流')' - Winform: System.ArgumentNullException: 'Value cannot be null. (Parameter 'stream')' ToListAsync抛出'Value不能为null。' 例外 - ToListAsync throws 'Value cannot be null.' Exception
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM