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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
looks like your connection string is invalid. I would check that it is defined correctly, I don't know what else to tell you since all you gave us was an error...Maybe post the connection string definition if you need more help. It is either defined in
your web.config or in the sqldatasource definition.
Don't forget to click "Mark as Answer" on the post that helped you.
This marks your thread as Resolved so we will all know you have been helped.
Marked as answer by Motley on Jun 06, 2007 04:50 PM
cheatcountry
Member
12 Points
81 Posts
Format of the initialization string does not conform to specification starting at index 0
Jun 06, 2007 06:20 AM|LINK
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
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) +1242
System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +128
System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +102
System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +52
System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +24
System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +125
System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value) +56
System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +4
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +138
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
benderm
Participant
922 Points
348 Posts
Re: Format of the initialization string does not conform to specification starting at index 0
Jun 06, 2007 07:46 AM|LINK
looks like your connection string is invalid. I would check that it is defined correctly, I don't know what else to tell you since all you gave us was an error...Maybe post the connection string definition if you need more help. It is either defined in your web.config or in the sqldatasource definition.
Don't forget to click "Mark as Answer" on the post that helped you.
This marks your thread as Resolved so we will all know you have been helped.
cheatcountry
Member
12 Points
81 Posts
Re: Format of the initialization string does not conform to specification starting at index 0
Jun 07, 2007 07:19 AM|LINK
ID="view_groups_source" runat="server" ConnectionString="IMS_DB"
SelectCommand="SELECT * FROM RW_Groups, Membership WHERE ([Membership.UserID] = @UserID)">
<SelectParameters>
<asp:ControlParameter ControlID="username" Name="UserID" PropertyName="Text" />
</SelectParameters>
</asp:SqlDataSource>