[英]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.