| | |
What does this innerException mean?
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2006
Posts: 88
Reputation:
Solved Threads: 0
I was working on a project in my VB.NET Express and suddenly my code that was working fine and starting up as normal gave me this error:
{"An error occurred creating the form. See Exception.InnerException for details. The error is: Format of the initialization string does not conform to specification starting at index 33."}
When I'm trying to run my application, it doesn't open my main form.
What does this mean - and how do I fix this?
{"An error occurred creating the form. See Exception.InnerException for details. The error is: Format of the initialization string does not conform to specification starting at index 33."}
When I'm trying to run my application, it doesn't open my main form.
What does this mean - and how do I fix this?
•
•
Join Date: Sep 2006
Posts: 88
Reputation:
Solved Threads: 0
Here's the connection string
I originally had the connection strings as constants, but my boss wanted a way that he could browse to another database with the same structure in another location, so I added the path to the DBSPATH variable.
VB.NET Syntax (Toggle Plain Text)
Dim DBSPATH As String = "C:\Documents and Settings\rgibson.FOODGROUP\My Documents\Visual Studio 2005\Projects\AR Van Router\" Dim Testing_ODBC_ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBSPATH & ";User ID =Admin;Password=;"
Last edited by bajanpoet; Sep 4th, 2007 at 10:21 am. Reason: Added the DBSPATH variable to the code snippet
The data source part of the connection string refers to an mdb file, not a folder path. I think it should be like this.
The error said index 33, and that's right where the data source part of the connection string starts.
vbnet Syntax (Toggle Plain Text)
Dim DBSPATH As String = "C:\Documents and Settings\rgibson.FOODGROUP\My Documents\Visual Studio 2005\Projects\AR Van Router\myDatabase.mdb" Dim Testing_ODBC_ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBSPATH & ";User ID =Admin;Password=;"
The truth does not change according to our ability to stomach it.
![]() |
Similar Threads
- Could not create 'CDO.Message' object (ASP.NET)
- InvalidOperationException was unhandled (VB.NET)
- setting the web.config file (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: VB.NetCF and Googlemaps Mobile
- Next Thread: Identify keyword
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist excel file-dialog folder ftp generatetags google gridview hardcopy image images insert intel internet listview login math mobile monitor ms navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 port print problem problemwithinstallation project reports" save savedialog searchbox searchvb.net select serial soap string table tcp text textbox timer toolbox trim update updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





