Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Web Platform Installer 4 not prompting for database parameters

$
0
0

Hi,

I'm trying to test an application package using a custom feed and I'm running into an issue where the WPI (GUI, not command line) will not prompt for any of the database parameters specified in the parameters.xml file. This causes the installation to fail since it requires a Database Administrator Password. It does successfully prompt for the web site settings.

Below are the relevant errors from the log files and the xml files from my package.

Any help would be appreciated!

UPDATE: I uninstalled WPI v4 and installed v3 and that version does show the database parameters screen..

Error in log file:

[16:33:966]Performing synchronization pass #1. EXCEPTION: Microsoft.Web.Deployment.DeploymentClientServerException: Missing source parameter 'Database Administrator Password' (Password for the database administrator account.). This must be set for successful synchronization.    at Microsoft.Web.Deployment.ParameterizationRuleHandler.PreSync(DeploymentSyncContext syncContext)    at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)    at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable`1 syncPassId)    at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)    at Microsoft.Web.Deployment.DeploymentObject.SyncTo(String provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)    at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentWellKnownProvider provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)    at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)    at Microsoft.Web.PlatformInstaller.MSDeployProxy.Install(InstallerContext context, RemoteCredentials remoteCredentials)

manifest.xml

<msdeploy.iisApp>
  <iisApp path="application" />
 <dbfullsql path="sqlscripts\createlogin.sql" transacted="true" />
 <dbfullsql path="sqlscripts\createuser.sql" transacted="true" />
 <dbfullsql path="sqlscripts\createDB.sql" transacted="true" />
 <dbfullsql path="sqlscripts\adddefaultdata.sql" transacted="true" />
</msdeploy.iisApp>

parameters.xml

<parameters>
  <parameter name="AppPath"
             defaultValue="Default Web Site/ScrumTool"
    tags="iisapp">
    <parameterEntry type="ProviderPath"
                 scope="iisapp"
     match="application" />
  </parameter>
  <parameter name="Database Server"
             description="Location of your database server (i.e., localhost, server name or IP address)."
    defaultValue=".\SQLEXPRESS"
    tags="DBServer, SQL">
         <parameterEntry type="TextFile" scope="\\web.config$" match="PlaceHolderDatabaseServer" />
  </parameter>
  <parameter name="Database Name"
              description="Name of the database for your application."
     defaultValue="ScrumTool"
     tags="DBName, SQL">
     <parameterEntry type="TextFile" scope="\\web.config$" match="PlaceHolderDatabaseName" />
  </parameter>
  <parameter name="Database Administrator"
             description="Administrator username for your database. (used for creating database login)"
    defaultValue="sa"
    tags="DbAdminUsername, SQL">
  </parameter>
  <parameter name="Database Administrator Password"
             description="Password for the database administrator account."
    tags="Password, SQL, DbAdminUserPassword">
  </parameter>
  <parameter name="Connection String for all scripts"
             description="Automatically sets the connection string for the connection request."
    defaultValue="Connect Timeout=380;Data Source={Database Server};Database={Database Name};uid={Database Administator};Pwd={Database Administrator Password};"
    tags="Hidden, SQLConnectionString">
     <parameterEntry type="ProviderPath" scope="dbfullsql" match="createlogin.sql"/>
  <parameterEntry type="ProviderPath" scope="dbfullsql" match="createuser.sql"/>
  <parameterEntry type="ProviderPath" scope="dbfullsql" match="createDB.sql"/>
  <parameterEntry type="ProviderPath" scope="dbfullsql" match="adddefaultdata.sql"/>
  </parameter>
</parameters>  


Viewing all articles
Browse latest Browse all 27852

Trending Articles



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