Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi..

I am tried to deploy my Asp application I am setup profile according to walkthrought deployment process
as link is
http://msdn.microsoft.com/en-us/library/dd483479%28v=vs.100%29.aspx[^]

it comes an error that have i don't understand this.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Deploy\Microsoft.Web.Publishing.MSDeploy.Common.targets(55,5): Error : Web deployment task failed. (Format of the initialization string does not conform to specification starting at index 0.)


please somebody help me...
Posted

1 solution

Refer - Deploying an ASP.NET Web Application with SQL Server Compact using Visual Studio or Visual Web Developer: Troubleshooting (12 of 12)[^].

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


Scenario


After you deploy an application using one-click publish, when you run a page that accesses the database you get the following error message:

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

Possible Cause and Solution


Open the Web.config file in the deployed site and check to see whether the connection string values begin with $(ReplacableToken_ , as in the following example:
XML
<connectionStrings>
    <add name="DefaultConnection" connectionString="$(ReplacableToken_DefaultConnection-Web.config Connection String_0)" providerName="System.Data.SqlServerCe.4.0" />
    <add name="SchoolContext" connectionString="$(ReplacableToken_SchoolContext-Web.config Connection String_0)" providerName="System.Data.SqlServerCe.4.0" />
</connectionStrings>

If the connection strings look like this example, edit the project file and add the following property to the PropertyGroup element that is for all build configurations:
XML
<AutoParameterizationWebConfigConnectionStrings>False</AutoParameterizationWebConfigConnectionStrings>

Then redeploy the application.
 
Share this answer
 
v2
Comments
Member 10271164 27-Nov-14 5:32am    
Thanks..
i tried but not work properly..
What's not working? What is the issue now?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900