I have two ASP.NET Web projects (ProjectA and ProjectB). When class in ProjectA is instantiating a class of ProjectB which uses a resource file Blah.resx, I get this error:
When I tried sharing a resource.resx file from one C# project with another C# project, I got this problem. The suggestion on moving the Form class to the beginning of its file wasn't appropriate. This is how I solved it. You essentially use a link from the second project to the first, then enable regeneration of the resource.designer.cs file.
Properties/Resources.resx fileProperties/Resources.resx file as a LINK to the Properties folder in the second project. Don't add it to the root level of the project.Properties/Resources.designer.cs!Resources.resx, add ResXFileCodeGenerator as the CustomToolResources.resx and select "Run Custom Tool". This will generate a new designer.cs file.Note: I would avoid editing the resource.designer.cs file, as this is autogenerated.