YAFLogo

taimurhasan
  • taimurhasan
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
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:

APPCONFIG:

Does anyone know why Im getting this issue or I cant keep the connection string in the AppConfig file.

Any help would be greatly appreciated.

Tammy

Sponsor
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
15 years ago
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.