I am experiencing a strange, repeatable error.... Every time I first run my project from Visual Studio (ONLY THE FIRST TIME!!!), I get a null reference exception when trying to assign the Request.UserLanguages value to the Thread CurrentCulture..
But everything works fine (it can find the reference), on all subsequent tries (until I shut down VS 2008, open back up, and run it for another first time- then the error comes back (only for the first run though..)).
Does anyone know why I would be experiencing this odd behavior? I want to make sure there is nothing in my code amiss.
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Request.UserLanguages);