PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

connection string exception : Format of the initialization string does not conform to specification starting at index 0

 
 
Gaurav
Guest
Posts: n/a
 
      7th Nov 2003
Hi,

I have a connection string
"Data Source=db1.mynet;DATABASE=test;User ID=testuser;Password=test;"
,
when i use the connection string to get a dataset of all the tables of
a database
it works without any problem, but when i try and call a stored
procedure i get an
exception trace like :

"...Additional information:
System.Web.Services.Protocols.SoapException: Server was
unable to process request. ---> System.ArgumentException: Format of
the initialization
string does not conform to specification starting at index 0.
at System.Data.Common.DBConnectionString.GetKeyValuePair(Char[]
connectionString, Int32 currentPosition, String& key, Char[] valuebuf,
Int32& vallength, Boolean& isempty)
at System.Data.Common.DBConnectionString.ParseInternal(Char[]
connectionString, UdlSupport checkForUdl, NameValuePair& keychain)
at System.Data.Common.DBConnectionString..ctor(String
connectionString, UdlSupport checkForUdl)
at System.Data.SqlClient.SqlConnectionString..ctor(String
connectionString)
at System.Data.SqlClient.SqlConnectionString.ParseString(String
connectionString)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String
value)
at System.Data.SqlClient.SqlConnection..ctor(String
connectionString)
at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteDataset(String
connectionString, CommandType commandType, String commandText,
SqlParameter[] commandParameters) in C:\Program Files\Microsoft
Application Blocks for .NET\Data Access ...."


I googled a bit and have traced this to a probable bug, described in
Microsoft Knowledge Base Article - 823679
(http://support.microsoft.com/default...b;en-us;823679).

So my questions are :-
1. Is there something wrong with the connection string that i am
using,

2. According to the article i need the following files :-
Date Time Version Size File name
--------------------------------------------------------------
27-Jun-2003 15:01 1.1.4322.918 1,294,336 System.data.dll
30-Jun-2003 22:27 1.0.0.0 1,629,352
Ndp1.1-kb823679-x86.exe
03-Jul-2003 03:20 5.3.17.17 709,920
Windowsserver2003-kb821415-x86-enu.exe

Where can i get these files from?

I am using :
* .NET Framework 1.1 version 1.1.4322
* Microsoft Devel. Envi. 2003 Version 7.1.3088
* OS : XP Professional Version 2002 Service Pack 1


Regards
Gaurav
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format of the initialization string does not conform to specification... gloria Microsoft ADO .NET 4 15th Mar 2005 07:06 PM
Format of the initialization string does not conform to specification starting at index 5." andy Microsoft ASP .NET 0 21st Dec 2004 10:38 PM
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0. Francisco Lopez Microsoft Dot NET Framework 0 3rd Dec 2004 11:01 PM
Format of the initialization string does not conform to specification starting at index Sérgio Pinheiro Microsoft ADO .NET 0 25th May 2004 05:20 PM
Format of the initialization string does not conform to specification starting at index 90 Nick Microsoft C# .NET 0 5th Feb 2004 06:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:43 AM.