| | |
Visual Web Developer 2005 problem
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2007
Posts: 15
Reputation:
Solved Threads: 0
Hi all
Ive been working on a VW2005 project and constantly been getting the following error message... Ive been debugging the program for quite some time now and still cant figure out where the problem lies...
Any help with thatv??
Ive been working on a VW2005 project and constantly been getting the following error message... Ive been debugging the program for quite some time now and still cant figure out where the problem lies...
VB.NET Syntax (Toggle Plain Text)
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: 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) +1284 System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +115 System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +99 System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +52 System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +25 System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +141 System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value) +38 System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +4 System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +128 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +13 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +140 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +68 System.Web.UI.WebControls.GridView.DataBind() +5 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +61 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +67 System.Web.UI.Control.EnsureChildControls() +97 System.Web.UI.Control.PreRenderRecursiveInternal() +50 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5729
Any help with thatv??
Last edited by yagapapa; Sep 23rd, 2007 at 8:32 am.
It looks like your connection string is the issue
It should look like If this is not the issue could you then post the ConnectionString and the SQL Statment
It should look like
VB.NET Syntax (Toggle Plain Text)
Data Source=SERVERNAME;Initial Catalog=DATABASENAME;UID=USERNAME;PWD=PASSWORD
•
•
Join Date: Mar 2007
Posts: 15
Reputation:
Solved Threads: 0
This is my connection string from my web.config file...
Um...Im not sure where the problem could be lying because this connection was generated by the system...I didnt do any tweaking myself...
You will notice that my database name is Ratios...
Um...Im not sure where the problem could be lying because this connection was generated by the system...I didnt do any tweaking myself...
VB.NET Syntax (Toggle Plain Text)
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Ratios.mdf;Integrated Security=True;User Instance=True"
You will notice that my database name is Ratios...
Last edited by yagapapa; Sep 23rd, 2007 at 2:59 pm.
•
•
Join Date: Sep 2007
Posts: 7
Reputation:
Solved Threads: 0
the connection string that you have sent is just attaching the database file to the server and is not trying to open the database.
change the connection string to the following :
Data Source=SERVERNAME;Initial Catalog=DATABASENAME;UID=USERNAME;PWD=PASSWORD
The above will only work if you are trying to connect to the database.
Bharat
change the connection string to the following :
Data Source=SERVERNAME;Initial Catalog=DATABASENAME;UID=USERNAME;PWD=PASSWORD
The above will only work if you are trying to connect to the database.
Bharat
•
•
•
•
This is my connection string from my web.config file...
Um...Im not sure where the problem could be lying because this connection was generated by the system...I didnt do any tweaking myself...
VB.NET Syntax (Toggle Plain Text)
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Ratios.mdf;Integrated Security=True;User Instance=True"
You will notice that my database name is Ratios...
This would make your ConnectionString
VB.NET Syntax (Toggle Plain Text)
connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=Ratios;Integrated Security=True;User Instance=True"
•
•
Join Date: Sep 2007
Posts: 7
Reputation:
Solved Threads: 0
Try the following
strConnect = "Driver={SQL Server};Server=<server address>;Database=<database>;UID=;PWD="
OR
connectionString="Data Source=DSN Name;Initial Catalog=Ratios;Integrated Security=True;User Instance=True"
strConnect = "Driver={SQL Server};Server=<server address>;Database=<database>;UID=;PWD="
OR
connectionString="Data Source=DSN Name;Initial Catalog=Ratios;Integrated Security=True;User Instance=True"
Last edited by bharatsaboo; Sep 24th, 2007 at 3:53 am.
•
•
Join Date: Mar 2007
Posts: 15
Reputation:
Solved Threads: 0
I tried the latter code, i still get the same error, I didnt try the former cos im not sure about the "SQL Server" and the "server address" or do i just copy and paste it exactly like that ??
•
•
Join Date: Mar 2007
Posts: 15
Reputation:
Solved Threads: 0
I tried the latter code and i still get the same error, I didnt try the former cos im not sure about the "SQL Server" and the "server address" or do i just copy and paste it exactly like that ??
OK Try This.
Place a Label on your page called lblError
then add the word "Try" at the top of the Sub/Function that Errors
and add
Catch ex as Exception
lblerror.text = ex.message
End Try
to the end of the Sub/Function
and post back the message it produces
Example
http://www.taylorsnet.co.uk/SourceCo...spx?SourceID=6
This should give a better Error Massage
Place a Label on your page called lblError
then add the word "Try" at the top of the Sub/Function that Errors
and add
Catch ex as Exception
lblerror.text = ex.message
End Try
to the end of the Sub/Function
and post back the message it produces
Example
http://www.taylorsnet.co.uk/SourceCo...spx?SourceID=6
This should give a better Error Massage
Last edited by ptaylor965; Sep 24th, 2007 at 2:43 pm.
![]() |
Similar Threads
- How to Resolve "Server Error '/' Application" Message? (ASP.NET)
- i am not getting the debug toolbar of visual web developer. i can't start the program (ASP.NET)
- problem with soft delete (ASP.NET)
- I Need Urgent Reply (MS SQL)
- I need a ASP.net project (ASP.NET)
- Classes?? (VB.NET)
- ASP.NET 2.0 Invalid attempt to FieldCount when reader is closed (ASP.NET)
- "Error message 580 when debugging a web page" (ASP.NET)
- IIS and ASP.Net (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Solution for slow systems
- Next Thread: right click message send to operating system
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2008 access add advanced application array assignment basic binary box button buttons center click code combo connectionstring convert cpu data database databasesearch datagrid datagridview design designer dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel exists firewall folder image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity pan peertopeervideostreaming picturebox picturebox2 port print printpreview record regex reports" reuse right-to-left save savedialog search serial socket sorting sqldatbase sqlserver storedprocedure string temp textbox timer txttoxmlconverter upload useraccounts usercontol usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vbnet vista visual visualbasic visualbasic.net visualstudio.net web wpf xml





