Tracing, CultureInfo and infinite Recursion

G

GB

All,

There's a few messages around about the Environment.GetResourceString
causing a "Resource lookup failed - infinite recursion detected." error
but nothing detailed.

I have a problem whereby I am changing the thread Culture Info from
default (English) to a custom culture object (Welsh) in a .NET 1.1 ASPX
page.

It works fine except in some cases, when ASPX tracing is also enabled,
the Environment.GetResourceString throws the exception. I think this is
because the ASPX page and tracing processing are using the same thread
and are both going into the GetResourceString method, hence the
exception. This is when running through a debugging under VS 2003, so
I'm assuming only one thread is being used 'cos of the debugger.

I've not narrowed down exactly what causes the "in some cases" is yet
but can anybody explain why tracing would cause this error, and why
tracing would also go into the GetResourceString method? How does
tracing work behind the scenes, as regards threading usage?

Thanks
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top