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

后端 未结 30 1514
旧巷少年郎
旧巷少年郎 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:05

    When we were using

    HttpContext.GetGlobalResourceObject()
    

    It would generate that error unless we wrapped that call inside a try/catch statement.

提交回复
热议问题