The problem is caused by the following reasons:
1. If the resource is listed more than once.
2. If the resource folder is not found or deleted.
3. If any of the file inside the resources folder is deleted from outside the project.
The resources.resx file is located inside the MyProject folder of the project.
Try removing the duplicate entries from the resources.resx file.
Or, avoid deletion/exclusion of resources folder.
It may help you solve the problem.
In my case, there was a duplicate entry so removing it resolved my problem.
1. If the resource is listed more than once.
2. If the resource folder is not found or deleted.
3. If any of the file inside the resources folder is deleted from outside the project.
The resources.resx file is located inside the MyProject folder of the project.
Try removing the duplicate entries from the resources.resx file.
Or, avoid deletion/exclusion of resources folder.
It may help you solve the problem.
In my case, there was a duplicate entry so removing it resolved my problem.