Last post Dec 10, 2012 02:52 PM by GMann
Dec 10, 2012 02:44 PM|GMann|LINK
Hi; I have the following connection string set up in my web.Release.config file -
connectionString="Data Source=MySource;Initial Catalog=aTable;Persist Security Info=True;User ID=Joe;Password=aPWD"
But when I created my deployment pkg there was an error in my web.config -
<add name="connTest" connectionString="$(ReplacableToken_connTest-Web.config Connection String_0)" providerName="System.Data.SqlClient"/>
Is this an error or will this replaced at run time ?
$(ReplacableToken_connTest-Web.config Connection String_0)"
Thanks for your insights !
Dec 10, 2012 02:48 PM|aptbid2002|LINK
When you use publish for a website you need to use WebDeploy to import your new application in IIS. When you are importing it will ask you for the new connectionstring. It appears that you just unziped the Web application project to wwwroot. At this point
you have two options. Remove the unzipped files and use WebDeploy -> Import application or change your connectionstring in the web.config.
Dec 10, 2012 02:52 PM|GMann|LINK