简体   繁体   中英

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. However, when I tried to add an image to my picture box I received the following error.

Value cannot be null. Parameter name: 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.

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

Accept this as an answer if it solves your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM