SBSK and SQL databasehttp://forums.asp.net/t/1431852.aspx/1?SBSK+and+SQL+databaseTue, 13 Oct 2009 10:19:59 -040014318523213154http://forums.asp.net/p/1431852/3213154.aspx/1?SBSK+and+SQL+databaseSBSK and SQL database I'm trying to point to my SQL database for app data. I changed the newsProviderName=&quot;sqlProvider&quot;. With that, I get the error message: Object reference not set to an instance of an object. In particular the source error reads: Line 22: string connectionStringName = sec.NewsProviders[sec.NewsProviderName].Parameters[&quot;connectionStringName&quot;]; Line 23: return WebConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString; By the way, I have successfully connected on test pages to the SQL database and VWD added the following connection string to the Web.Config file: I have searched for weeks on how to add a connection string to the SQL database (along with table, username, password) to no avail. Can anyone answer this or point me to a general area I might find the answer? Any and ALL help would be most appreciated!!! 2009-06-05T13:16:25-04:003455530http://forums.asp.net/p/1431852/3455530.aspx/1?Re+SBSK+and+SQL+databaseRe: SBSK and SQL database <p>I might be misunderstanding the question, but why isn't this the answer?</p> <p><font color="#008000" size="2"><font color="#008000" size="2"></p> <p>&lt;add name=&quot;ConnectionString&quot; connectionString=&quot;Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True&quot; providerName=&quot;System.Data.SqlClient&quot;/&gt;</p> <p>Regards,</p> <p>&nbsp;</p> </font></font> <p></p> 2009-10-13T10:19:59-04:00