Server Error in '/' Application.

Format of the initialization string does not conform to specification starting at index 0.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.

Source Error:


Line 21:       else 
Line 22:       {
Line 23:         return new OleDbConnection(GetConnectionString(componentName[0]));
Line 24:       }
Line 25: 			//throw new System.NotImplementedException();

Source File: e:\wwwroot\Musayof.org\App_Code\Utils.cs    Line: 23

Stack Trace:


[ArgumentException: Format of the initialization string does not conform to specification starting at index 0.]
   System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue) +4913130
   System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +129
   System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +98
   System.Data.OleDb.OleDbConnectionString..ctor(String connectionString, Boolean validate) +33
   System.Data.OleDb.OleDbConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +36
   System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +200
   System.Data.OleDb.OleDbConnection.ConnectionString_Set(String value) +62
   System.Data.OleDb.OleDbConnection.set_ConnectionString(String value) +4
   System.Data.OleDb.OleDbConnection..ctor(String connectionString) +24
   RA.DB.Utils.ConnectToDB(String[] componentName) in e:\wwwroot\Musayof.org\App_Code\Utils.cs:23
   RA.Classes.Message.Load() in e:\wwwroot\Musayof.org\App_Code\Message.cs:46
   RA.Classes.Message.Load(Int32 id) in e:\wwwroot\Musayof.org\App_Code\Message.cs:40
   DynMessage.Page_Load(Object sender, EventArgs e) in e:\wwwroot\Musayof.org\DynMessage.aspx.cs:68
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8810; ASP.NET Version:2.0.50727.8745