Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 663

Web Deploy / VS / Publish / Settings / Databases / Connection String not working

$
0
0

Hi All,

I am using Web Deploy by way of Visual Studio / Build / Publish

I am NOT using Web Deploy and the VS Publish process to deploy my DataBase (I am doing that separately using Visual Studio Data Tools).

I AM  trying to alter my 2 web.config  database connection strings differently for each Publish Profile.  I have tried to do this using:

    Visual Studio / Build / Publish / Settings / Databases / ConnectionString  DBName;Persist Security Info=True;
   
User ID=UserName;Password=Password

    I have CHECKED the Checkbox "Use this connection string at runtime (update destination web.config)"

    I have left UNCHECKED the Checkbox Update Database

However with these settings although the deployment otherwise works well, the connection strings are NOT updated in the destination web.config

I did get my site working using standard web.config Transforms based on Build Configuration (debug, release or custom).  However I would prefer an approach that transforms Connection Strings based on Publish Profiles.

Any help to get this working would be appreciated.

Thanks

Terry Clancy

ClanceZ


Viewing all articles
Browse latest Browse all 663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>