Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7540375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:37:39+00:00 2026-05-30T07:37:39+00:00

I have a (for the time being) rather simple site manifest <sitemanifest> <IisApp path=c:\pathtosite

  • 0

I have a (for the time being) rather simple site manifest

<sitemanifest>
<IisApp path="c:\pathtosite" />
<dbFullSql path="Data Source=.\SQLEXPRESS;Initial Catalog=table;User Id=user;Password=pwd" includeIfNotExists="true" includeData="false" transacted="true" />
</sitemanifest>

The dbFullSql provider results in promting for a connection string when importing the site through IIS7.5. I’d love to reuse the information provided to update the web.config connection string but have no idea on how to achieve this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:37:40+00:00Added an answer on May 30, 2026 at 7:37 am

    It sounds like you would like to use parameters to me… When you import a package in the IIS inetmgr UI default parameters are created for each of the providers, which is why you get that prompt for the connection string. However you can also add explicit parameters when you create the package. If you’re doing this with the msdeploy.exe cmd line, you can put the parameters in a file and then add a -declareParamFile: to your package command to add them. The parameter for the database would probably be something like this – this says to use the provided connection string for both the dbFullSql provider path and replace whatever’s in the connectionStrings section of web.config:

    <parameter name="ConnectionString" description="Connection string for my database" defaultValue="Data Source=.\SQLExpress;Initial Catalog=table;User Id=user;Password=pwd" >
        <parameterEntry type="ProviderPath" scope="dbfullsql" match="Data\ Source=" />
        <parameterEntry type="XmlFile" scope="\\web.config$" match="//connectionStrings/add/@connectionString" />
    </parameter>
    

    More parameter examples/resources here:
    http://learn.iis.net/page.aspx/722/reference-for-the-web-application-package/ AND
    http://technet.microsoft.com/en-us/library/dd569084(v=WS.10).aspx

    If you have other Web Deploy questions please try our forum on IIS.net (http://forums.iis.net/1144.aspx).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a variable that's being changed all the time in the course of
I have a web service in ASP.NET being called by a time-sensitive process. If
I have an XML object being returned, and inside is a date and time
We have a large internal data collection website. I don't have time to create
I have a rather simple problem with ASP.NET. I have a grid view with
So my problem is rather simple and complex at the same time. I am
I am a rather new C++ programmer. I have made a very simple game
I have some rather dodgy data I'm looking at, and I've been tasked with
In My application have time consuming process.There fore i try to do that operation
I need to learn RegEx but don't have time to figure this out right

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.