Skip to main content
improved formatting
Source Link
Randy Levy
  • 22.6k
  • 4
  • 70
  • 94

I am trying to load a resx file in my .net website using:

ResourceManager rm = new ResourceManager( "Project.Resource", Assembly.GetExecutingAssembly() ); 

The Resource.resx file is in the folder App_LocalResources and is set to be embedded in assembly on build.

When I try to access the resx file using:

rm.GetString( "key" );rm.GetString( "key" ); or rm.GetString( "key", culture );rm.GetString( "key", culture );

I get an error message:

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Project.Resource.resources" was correctly embedded or linked into assembly "Project" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Project.Resource.resources" was correctly embedded or linked into assembly "Project" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Notice the .resources ... any ideas on what is going on here?

Thanks in advance

I am trying to load a resx file in my .net website using

ResourceManager rm = new ResourceManager( "Project.Resource", Assembly.GetExecutingAssembly() ); 

The Resource.resx file is in the folder App_LocalResources and is set to be embedded in assembly on build.

When I try to access the resx file using

rm.GetString( "key" ); or rm.GetString( "key", culture );

I get an error message

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Project.Resource.resources" was correctly embedded or linked into assembly "Project" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Notice the .resources ... any ideas on what is going on here?

Thanks in advance

I am trying to load a resx file in my .net website using:

ResourceManager rm = new ResourceManager( "Project.Resource", Assembly.GetExecutingAssembly() ); 

The Resource.resx file is in the folder App_LocalResources and is set to be embedded in assembly on build.

When I try to access the resx file using:

rm.GetString( "key" ); or rm.GetString( "key", culture );

I get an error message:

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Project.Resource.resources" was correctly embedded or linked into assembly "Project" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Notice the .resources ... any ideas on what is going on here?

Source Link
Adam Fox
  • 1.3k
  • 2
  • 13
  • 24

ResourceManager trying to load .resources not .resx file

I am trying to load a resx file in my .net website using

ResourceManager rm = new ResourceManager( "Project.Resource", Assembly.GetExecutingAssembly() ); 

The Resource.resx file is in the folder App_LocalResources and is set to be embedded in assembly on build.

When I try to access the resx file using

rm.GetString( "key" ); or rm.GetString( "key", culture );

I get an error message

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Project.Resource.resources" was correctly embedded or linked into assembly "Project" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Notice the .resources ... any ideas on what is going on here?

Thanks in advance