Asma Gheisari Asma Gheisari -4 years ago 56
ASP.NET (C#) Question

The name 'Resources' does not exist in the current context

I'm trying to have

Internationalisation
in my project based on this article . but in
LanguageController.cs
file in
Language
method:

public JavaScriptResult Language()
{
return GetResourceScript(Resources.Language.ResourceManager); //Error
}


I get this error:

The name 'Resources' does not exist in the current context


what's wrong whit It?

Answer Source

You should add a Resources.resx file to your application. Also be careful to which folder you are adding it. For example the App_GlobalResources is a special ASP.NET folder and you should try placing your resx file somewhere else.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download