"The ConnectionString Property has not been initialized"

bizzydint

Well-known member
Joined
Apr 8, 2003
Messages
75
Not sure if this is the right forum (apologies if its not...)

Im getting the error:
"The ConnectionString Property has not been initialized"

When one particular page is opened. The rest of the site works (all other pages have DB calls too).

And it all works locally. And on our old server (were trying to move the site to a new one which is where it breaks).

I cant debug this cos I cant see whats wrong! Any ideas??
 
Are all other calls to the db (i.e. on other pages) to the new server or are the others to the old server? What is the server type? Can you show us the string? Sounds though like the problem is in the code. The connection object needs its connection string declared. How are you passing the string in?

Jon
 
Turned out to be really odd.

we had lots of connection.dispose() calls - which we have on other parts of the site, but it seemed to fall over in this case on this particular server.

very very bizarre.
 
Back
Top