C# control development error resolution record

C# control development error resolution record

1. Error description

The following error occurred when using EPPlus
Please add image description

Insert image description here

2. Solve the problem

Enter the local project directory
Insert image description here

According to the error message, we know that the dll file of "Microsoft.IO.RecyclableMemoryStream," cannot be found, causing this error**
Insert image description here

We check the dll files in debug under each project and find which project does not have this dll.
Insert image description here

Here, it is found that there is no such dll file under the Test project
Insert image description here

Copy this dll file from other existing projects and paste it into this file directory
Insert image description here

In the corresponding Test file, reference-"right-click-"add reference
Insert image description here

Add the reference you just added to the Test project reference
Insert image description here

It should be noted here that this application must be referenced in the Test/bin/Debug directory.
Insert image description here

I'm a general, I've always been there. !

おすすめ

転載: blog.csdn.net/letterljhx/article/details/133307161