3

I have a number of ASP.NET applications which run fine for months, then stop dead with the message: "....ConnectionString property has not been initialized". The application uses strongly typed datasets, with the connection string stored in the web.config file. If you just search the web for the message in the subject, you get all sorts of answers relating to incorrectly configured web.config files. In this case, however, the connection works - then randomly stops working.

The resolution, I have found, is to open the web.config file in Notepad and Save the file (without making any changes), or rebooting the server (the customer's IT dept did this). Once you save the file or reboot, the website continues to run normally.

I have seen this behaviour at several sites with several of our applications, but can't seem to find a resolution. Are there any Microsoft KBs about this? Is it a bug in the ASP.NET stack, or is there a problem with the way I am using the DAL?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Tim Muir
  • 31
  • 1

1 Answers1

0

Is there maybe some server environmental factor such as permissions being randomly applied across your web root folder?

Ranhiru Jude Cooray
  • 19,542
  • 20
  • 83
  • 128
Brian Scott
  • 9,221
  • 6
  • 47
  • 68
  • Hi Brian - this is an interesting thought. Now that I think about it, the only time this has occurred is on Windows Server 2003 clients (the 2008 and Windows 7 or Windows XP clients don't seem to have this issue). – Tim Muir Jul 26 '11 at 08:09