Could not find any resources appropriate for the specified culture or the neutral culture

后端 未结 30 1558
旧巷少年郎
旧巷少年郎 2020-11-28 20:15

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:

30条回答
  •  鱼传尺愫
    2020-11-28 21:08

    Sibi Elangos answer alone was not sufficient for me, so I had to

    • Right click on your ResourceFile
    • Change the "Build Action" property
    • Compile to "Embedded Resource"
    • Build and deploy

    This will generate an App_GlobalResources in your /bin folder, now copy that folder also to the root of the web application

提交回复
热议问题