We'll add an xpath pointing to the connection string attribute. For an XmlFile parameter entry, the match is an xpath query that indicates a particular element or attribute in the XML file. In this case, we'll choose the Web.config file but we'll add \ to indicate the start of the file and $ to indicate the end of the file name so that wouldn't also be updated. The scope is a regular expression that tells us what file to locate in the package. In this case, we'll choose XmlFile because we want to point to the Web.config file.Įnter the scope for the parameter entry. You'll notice that the parameter entry has 3 fields to fill out.Ĭhoose the type of parameter you want. We're going to create a parameter entry that points to the connection string inside the application's Web.config file. Select the second parameter in the list, Parameter 2, and click on the Add Parameter Entry button. We're going to give them friendlier names and descriptions. Next you will see parameters that are generated based on the two providers that you added in the previous step. You'll notice that the database now shows up in the package contents tree view. (Example: "Data Source=.\SQLExpress Database=MyApplicationDb User id=MyAppUser Password=SomePassWord " without the quotes.) If you hover over a provider, you will see a description and example path.Įnter the path to your database or script file in the Path column. In the second row, choose the dbFullSql provider from the Provider Name drop-down. The first row is your iisapp provider entry, which is your application. link to launch the wizard.īy default, the package will contain the site or application you have selected (in this case the Default Web Site/MyApplication) and its content folders. In the right-hand Actions pane under Manage Packages, click the Export Application. In IIS Manager, expand the Server node and the Sites node, then select the Default Web Site/MyApplication. Open the IIS Manager by clicking Start > Run and typing inetmgr. Run the following command to backup an IIS 7.0 or above server: %windir%\system32\inetsrv\appcmd add backup "PreMsDeploy" Note: If you have not already installed the Web Deployment Tool, see Installing the Web Deployment Tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |