1

I am trying to get a value from Resource file which I have added in App_GlobalResource folder

enter image description here

But when I am trying to access the resource through an Action, GetGlobalResourceObject returns null and Resources class is not getting generated. What am I doing wrong in this to get the resource.

enter image description here

Joe 89
  • 850
  • 1
  • 12
  • 30
  • 1
    It's good that you used a graphic to show the folder, but you shouldn't use graphics for the code part. If you cut-and-paste the code block in, the website will do syntax highlighting for you, and more importantly it will show up in future searches. – Andrew Shepherd Jan 31 '16 at 10:04
  • 1
    Ok. Noted. I wanted to show that Resources is showing me an error and is not generated. Any way, Thanks.. :) – Joe 89 Jan 31 '16 at 10:10
  • Possible duplicate of [How to use compiled global resources in ASP.NET MVC](http://stackoverflow.com/questions/1848955/how-to-use-compiled-global-resources-in-asp-net-mvc) – NightOwl888 Jan 31 '16 at 11:03

0 Answers0