Posted by: taimurhasan - Wednesday, 4 November 2009 16:36:12 |
---|
Hi All. I am warpped around the axle on this one. Installed the YAF as recommended in my existing application. Getting DB connection errors. My existing application uses a seperate App.Config file. I merged all the necessary chages to the existing applications web config and makes a reference to the App.Config file. I added the yafnet connection string key to the App.config file. Now Im getting the following error while loading up the forums.
Line 248: get
Line 249: {
Line 250:
Line 251: //return ConfigurationManager.ConnectionStrings["yafnet"].ConnectionString;
Line 252: }
[NullReferenceException: Object reference not set to an instance of an object.]
YAF.Classes.Config.get_ConnectionString() in C:\Yafsrc\YAF.Classes\YAF.Classes.Config\Config.cs:250
YAF.Classes.Data.YafDBConnManager.InitConnection() in C:\Yafsrc\YAF.Classes\YAF.Classes.Data\DBAccess.cs:75
WEBCONFIG:
|
Posted by: Jaben - Wednesday, 4 November 2009 21:16:57 |
---|
This is not your app.config file. It's your db.config file. Add the yafnet connection string where you are putting your connection strings. |