question

KurtJ avatar image
KurtJ asked

How solve "Initiation string format does not follow specification starting at index zero" error

Hi,

My Connection string is (inWeb.config file):

<addname="MyDatabaseConnectionString" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\Prylar1.mdf;Database=Prylar1;Integrated Security=True" providerName="System.Data.SqlClient" />

However, running application, ISS-server and Explorer 11 gives an error - and my attempt to translate from Swedish to English is "Initiation string format does not follow specification starting at index zero".

The asp.net code is:

<asp:SqlDataSource ID="DataSource1"runat="server"ConnectionString="MyDatabaseConnectionString"

SelectCommand="SELECT [ProductID], [ProductName], [TextPath], [ImagePath],

[UnitPrice], CategoryID

FROM [Products] ORDER BY [ProductName]">

</asp:SqlDataSource>

As far I can see (beginner!) the code and string are correct?? Appreciate suggestions where I have got it wrong and solutions if possible.

sql-server-2012
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.