ASP .NET Failed to load resources from resource file.

G

Guest

Hi,
We are running a ASP .NET application on Win2K server (.NET framework 1.1)
I have recently started getting this error - Failed to load resources from
resource file.

I would like to understand what causes this error.

It is a multi-language app and in Application_BeginRequest we do
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(Request.UserLanguages[0]);

Thanks in advance for any help.
Ramani
 
P

Patrik Löwendahl [C# MVP]

Do you have a default culture resource file? If not you're problem is
probably linked to what cultures you do have and the cultures that access
your webbpage.
 
G

Guest

Thanks Patrik,
I have not used any resources file.
The translations are done by our application logic
Should I have a default culture resource file even if I don't use it?:

Patrik Löwendahl said:
Do you have a default culture resource file? If not you're problem is
probably linked to what cultures you do have and the cultures that access
your webbpage.

--
Patrik Löwendahl [C# MVP]
www.cshrp.net - "Elegant code by witty programmers"
Ramani said:
Hi,
We are running a ASP .NET application on Win2K server (.NET framework 1.1)
I have recently started getting this error - Failed to load resources from
resource file.

I would like to understand what causes this error.

It is a multi-language app and in Application_BeginRequest we do
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(Request.UserLanguages[0]);

Thanks in advance for any help.
Ramani
 
P

Patrik Löwendahl [C# MVP]

Yes, you should always have a default resourcefile to be certain that you
always have something to display ;)

Is it so that you set the culture of the assembly to anyting else then the
default?

--
Patrik Löwendahl [C# MVP]
www.cshrp.net - "Elegant code by witty programmers"

Ramani said:
Thanks Patrik,
I have not used any resources file.
The translations are done by our application logic
Should I have a default culture resource file even if I don't use it?:

Patrik Löwendahl said:
Do you have a default culture resource file? If not you're problem is
probably linked to what cultures you do have and the cultures that access
your webbpage.

--
Patrik Löwendahl [C# MVP]
www.cshrp.net - "Elegant code by witty programmers"
Ramani said:
Hi,
We are running a ASP .NET application on Win2K server (.NET framework
1.1)
I have recently started getting this error - Failed to load resources
from
resource file.

I would like to understand what causes this error.

It is a multi-language app and in Application_BeginRequest we do
Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(Request.UserLanguages[0]);

Thanks in advance for any help.
Ramani
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top