I had this error:
The ConnectionString property has not been initialized.
I have a MSI installer, that is installed in our QA environment.
It was working before, and suddenly, I only had this error.
Googled up a bit, all this info on how to get the connection string and all that.
I finally realized that I rebuilt the whole solution, but I didn't rebuild the Deployment project. After a rebuild ... everything back to normal.
#:-S
Hope this helps someone.
SQL, C#, VB, .net, asp, JavaScript, you name it. Code samples, Error messages and stuff like that. Please add coments if you think I said something stupid :D or if you have a better idea ... or anything at all ...
Showing posts with label connection. Show all posts
Showing posts with label connection. Show all posts
Tuesday, May 11, 2010
Monday, September 29, 2008
The ConnectionString property has not been initialized.
The ConnectionString property has not been initialized.
????
:D
it is sooo easy. but you can waste a lot of time on this one.
Here is what was my problem:
1.) web.config:
< appSettings >
< add key="aaa" value="server=swoosh\sqlserver2k5;database=swdb;uid=sa;password=;" />
< / appSettings >
2.) accessing:
string strConnRSS = System.Configuration.ConfigurationManager.AppSettings["bbb"];
yes.
aaa <> bbb
Hope this'll help someone :)
don't look for anything too complicated :)
????
:D
it is sooo easy. but you can waste a lot of time on this one.
Here is what was my problem:
1.) web.config:
< appSettings >
< add key="aaa" value="server=swoosh\sqlserver2k5;database=swdb;uid=sa;password=;" />
< / appSettings >
2.) accessing:
string strConnRSS = System.Configuration.ConfigurationManager.AppSettings["bbb"];
yes.
aaa <> bbb
Hope this'll help someone :)
don't look for anything too complicated :)
Subscribe to:
Posts (Atom)