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 :)
No comments:
Post a Comment