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

I encountered the above error in quite a weird way. I replaced a  fromview control (TextBox) with a DropDownList and an SQL DataSource and began to get this error in a different place in the application, not related at this control at all. It turned out this is one of those weird ASP.NET errors that are totally out of context. The problem was indeed the datasource control whose connection string was wrong but it pointed to something entirely different.

[csharp]

/* this line was the problem */

[/csharp]

In the above I added connection to my sqldatasource using Properties while editing in .ASPX code (not form designer view). The problem was the connection string was built wrong, although it was done by ASP.NET itself.

[csharp]
ConnectionString=””
[/csharp]

Fixing the connection string as above fixed the problem.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s