Training
Learning path
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to: Internet Information Services 7.0, Internet Information Services 7.5, Internet Information Services 8.0
For certain common error cases, Web Deploy displays error messages. This article explains why the error message is shown and provides steps to avoid the errors. The error message may be different depending on how Web Deploy is started. For example, Microsoft WebMatrix chooses to show custom error messages. The error messages listed in the next few sections are shown on the msdeploy.exe command line and API:
Diagnosis
Web Deploy might not find the mysqldump.exe executable. This executable is required for MySQL database deployments.
Resolution
You can try either of the following workarounds:
C:\Program Files\MySQL\MySQL Server\bin
.REG_SZ
registry key to point to the executable. For example, set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\<version>\MySqlDumpPath
to c:\mysqldump\mysqldump.exe
Diagnosis
The remote application couldn't be found. This error can occur if you try to do a dump of "remotesite/remoteapp" where "remoteapp" doesn't actually exist.
Resolution
Specify a remote application name that actually exists.
Diagnosis
This error can occur if you try to do a SetAcl
on a file or folder that doesn't exist.
Resolution
Specify a file or folder that exists.
Diagnosis
The computer name is mistyped, or the computer isn't reachable.
Resolution
Try to check if the computer name is valid. Try pinging the computer manually.
Diagnosis
Web Management Service or Remote Agent isn't installed or unreachable on the remote computer.
Resolution
Verify that Remote Agent Service or Web Management Service is started on the remote computer, depending on which one you are connecting to. You can execute net start wmsvc
and net start msdepsvc
on the remote computer to ensure these services are started. Also, ensure that a firewall isn't interrupting communications with the destination.
Diagnosis
This error code may be shown because of various reasons. It typically indicates an authentication or authorization problem, and can happen because of any of the following reasons:
Resolution
To connect using the Web Management Service, follow these steps:
To connect using the Remote Agent Service, follow these steps:
Verify that the username and password are correct.
Verify that the user account you specified is a member of the Administrators group on the remote computer.
Note
If you aren't using the built-in administrator, create a new group called the "MSDepSvcUsers" group and add your new administrator to that group.
Verify that the site exists.
Diagnosis
The ERROR_USER_NOT_ADMIN code is shown if you try to connect to the Remote Agent Service but haven't provided appropriate administrator credentials.
Resolution
The Remote Agent Service accepts either built-in Administrator or Domain Administrator credentials. If you have a non-domain setup and want to use an account other than built-in administrator, do the following steps:
MSDepSvcUsers
on remote computer.A
on both local and remote computer.A
to MSDepSvcUsers
on remote computer.A
to publish, this allows you to publish without the need of a built-in admin account.Diagnosis
The certificate presented by the Web Deploy endpoint is untrusted or invalid. This typically happens if the remote server has a self-signed certificate for the Remote Agent Service or the Web Management Service.
Resolution
Either install a trusted certificate on the endpoint or try bypassing certificate validation.
From the msdeploy.exe command line, pass the -allowUntrusted
flag.
From the Visual Studio publish UI, check Allow Untrusted
.
From a Visual Studio deployment package (For example, MyApp.deploy.cmd), pass the -allowUntrusted
flag.
Add <AllowUntrustedCertificate>true</AllowUntrustedCertificate>
to the pubxml file:
<PropertyGroup>
<AllowUntrustedCertificate>true</AllowUntrustedCertificate>
</PropertyGroup>
Diagnosis
A proxy gateway is preventing Web Deploy from communicating with the remote Web Deploy endpoint.
Resolution
Web Deploy doesn't read system proxy settings. As a workaround, try disabling the system proxy by doing the following steps:
Diagnosis
The specified IIS site doesn't exist.
Resolution
Verify that the specified site actually exists. Sometimes, you may get this error if you have specified /
instead of \
in site URL. Try changing /
to \
.
Diagnosis
The specified application doesn't exist in IIS.
Resolution
Check IIS Manager to make sure you have correctly specified the name of the application path.
ERROR_USER_NOT_AUTHORIZED_FOR_DBFULLSQL,
ERROR_USER_NOT_AUTHORIZED_FOR_DBMYSQL,
ERROR_USER_NOT_AUTHORIZED_FOR_SETACL,
ERROR_USER_NOT_AUTHORIZED_FOR_APPPOOLNETFX,
ERROR_USER_NOT_AUTHORIZED_FOR_APPPOOLPIPELINE,
ERROR_USER_NOT_AUTHORIZED_FOR_RECYCLEAPP,
ERROR_USER_NOT_AUTHORIZED_FOR_CREATEAPP,
ERROR_USER_NOT_AUTHORIZED_FOR_CONTENTPATH
The group of errors listed share the following diagnosis, resolution, and workaround:
Diagnosis
A non-administrative user attempted to perform an operation with a Web Deploy provider for which the user is n't currently authorized.
Resolution
Web Deploy setup, by default, creates Management Service Delegation Rules, which allow non-administrators to perform operations with this provider. Check that the delegation rule required for this provider has been set up correctly.
Workaround
From the Programs > Control Panel, run Repair on Web Deploy. Alternatively, create the delegation rule manually.
Diagnosis
A non-administrative user attempted to perform an operation with a Web Deploy provider for which the user isn't currently authorized. This error code is shown if you try to perform an operation with a provider for which Web Deploy's setup doesn't create a delegation rule.
Resolution
The Web Deploy setup doesn't create a delegation rule for this provider. Create the delegation rule manually.
Diagnosis
This error can occur when you try to connect over the Web Management Service as a non-administrator:
Resolution
Grant the appropriate account Full Control on the site's root folder. Alternatively, do the following steps:
Diagnosis
The RunAs identity specified for the createApp delegation rule needs Write access to the IIS server's applicationHost.config file.
Resolution
Provide Write access to the IIS server's applicationHost.config file for the RunAs identity of the createApp delegation rule.
Diagnosis
An invalid database connection string was specified which caused a dbFullSql
or dbMySql
provider to not run correctly. This error can happen if a connection string is malformed (Example, Se v ver=localhost;...) or if the connection string contains keys, which the target database server doesn't recognize.
Resolution
Verify that the connection string is valid.
Diagnosis
A SQL script execution failure occurred.
Resolution
This error can happen for many reasons. For more information, see Web development on Windows.
Diagnosis
The dbFullSql
provider of Web Deploy requires Server Management Objects version 10 or higher.
Resolution
The SQL provider can't run because of a missing dependency. Make sure that Microsoft SQL Server Management Objects (Version 10 or higher) is installed.
Diagnosis
Web Deploy originally found an object to be deleted but when it tried to delete it, the object was missing.
Resolution
Make sure there are no other external processes that are modifying the target while performing a sync.
Diagnosis
The source application pool version is different from the destination application pool version.
Resolution
You can manually change the application pool versions to match between the source and destination, or use the apppoolnetfx
provider to do it automatically.
Diagnosis
The central certificate store can't be used in your current configuration.
Resolution
You need to make sure that you're using IIS 8 or later. If you're running msdeploy.exe on a 64-bit server, make sure that you're using the 64-bit version of the executable.
Diagnosis
The Centralized SSL Certificate Store is either not installed or set up properly. This feature is also not supported on IIS 7.5 or earlier.
Resolution
Verify that the server you're syncing to or from is running IIS 8 or later. Also verify that the Centralized SSL Certificate Store is installed and configured on that server.
Diagnosis
The AppHostAuthOverride provider requires IIS 7 or later.
Resolution
Make sure that the destination server you're modifying is running IIS 7 or later.
Diagnosis
Web Deploy can't connect to the remote service.
Resolution
Ensure that:
msdepsvc
or wmsvc
service is started on the remote server.msdepsvc
and 8172 for wmsvc
.Diagnosis
The ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH error can occur if you're doing a web server sync between two machines that have different versions of .NET installed.
Resolution
By default, Web Deploy prefers using the .NET version specified in its configuration file. If the version of .NET that Web Deploy is using on the client is different from the version on the server, a Web Server sync is blocked to prevent settings from different versions of .NET from being migrated. To resolve this problem, you have two options:
Use the netFxVersion
provider setting to inform Web Deploy exactly which .NET settings to migrate. Here is a command line example, which forces Web Deploy to sync .NET settings:
msdeploy.exe -verb:sync -source:webserver,machineconfig32.netfxversion=2,machineconfig64.netfxversion=2,rootwebconfig32.netfxversion=2,rootwebconfig64.netfxversion=2 -dest:webserver,machineconfig32.netfxversion=2,machineconfig64.netfxversion=2,rootwebconfig32.netfxversion=2,rootwebconfig64.netfxversion=2,computername=destServername
Run Web Deploy in the same version of .NET between client and server. On the client side, change the order of the supportedRuntime
version element in the %programfiles%\IIS\Microsoft Web Deploy V3\msdeploy.exe.config
file for the version of .NET that's specified first (see gacInstall provider for an example). This indicates the version of .NET, assuming it's installed on your system. On the server side, you can do the same for %programfiles%\IIS\microsoft web deploy\msdepsvc.exe.config
. If you modify this file, make sure to restart the Web Deployment Agent Services that is the net stop msdepsvc
and net start msdepsvc
.
Diagnosis
The specified binding couldn't be found.
Resolution
Run netsh http show sslcert
from the command line to verify that the specified binding exists. If it's not found, then you may need to recreate it through IIS Manager.
Diagnosis
An incorrect parameter tag was passed.
Resolution
Re-run Microsoft Deploy with the SQL, SQLCE, or MYSQL tag.
Diagnosis
The provider path is invalid.
Resolution
The path for your provider may differ depending on the provider you use. See Web Deploy Providers to know more about the provider you're using.
Diagnosis
The provider setting specified is invalid.
Resolution
See Web Deploy Providers to know more about the provider you're using.
Diagnosis
The provider setting value is invalid.
Resolution
See Web Deploy Providers to know more about the provider you're using.
Diagnosis
SNI Bindings are only supported on IIS 8 or later.
Resolution
SNI Bindings can only be created on IIS 8 or later.
Diagnosis
Web Deploy was unable to restore a backup.
Resolution
Verify the following points:
Diagnosis
The backup feature isn't configured properly on the destination server.
Resolution
Check the event logs for hints on which settings are misconfigured. Validate that the settings stored in the applicationHost.config file conform to the IIS schema file BackupManagerSchema.xml.
Diagnosis
Web Deploy failed to create a new backup on the destination server.
Resolution
Verify that:
appHostConfig
provider sync, make sure that the path for the provider isn't empty.Diagnosis
The backup setting that you're trying to set is marked as read only and can't be set.
Resolution
The server administrator needs to mark the backup setting as "settable" in the applicationHost.config file by either manually updating the file, or by using Web Deploy's PowerShell scripts.
Diagnosis
A destination file can't be overwritten or deleted because it is currently in use.
Resolution
Make sure that the destination file isn't in use before performing a sync. If you're syncing content to a web site hosted on IIS 7 or later (using the appHostConfig
, iisApp
, or contentPath
providers), consider taking the application offline during the sync by enabling the appOffline
rule.
You can configure the appOffline
rule in the publishing profile (.pubxml). Add the EnableMSDeployAppOffline
element to the PropertyGroup
like this:
<PropertyGroup>
<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>
</PropertyGroup>
Diagnosis
Web Deploy wasn't able to remove the app_offline.htm file from the site after the sync has completed.
Resolution
You may either rerun the sync with the appOffline
rule enabled, or manually delete the app_offline.htm file from the root of your site on the destination server. For details on the reason for the failure, check the server event logs.
You can configure the appOffline
rule in the publishing profile (.pubxml). Add the EnableMSDeployAppOffline
element to the PropertyGroup
like this:
<PropertyGroup>
<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>
</PropertyGroup>
Diagnosis
Web Deploy failed to perform a sync using SQL Dedicated Administrator Connection (DAC) because SQL DAC requires .NET 4.0.
Resolution
Ensure that the server making the SQL connection using DAC has .NET 4.0 installed. If you're connecting using the msdeploy.exe client, ensure that it has .NET 4.0 listed as its first option in the msdeploy.exe config file. If you're connecting to the msdepsvc
server endpoint (Web Deployment Agent service), ensure that it has .NET 4.0 listed as its first option in the msdepsvc.exe
config file.
Diagnosis
You have created more web applications than allowed on the target server.
Resolution
Request more applications from your server administrator or delete some of your existing applications.
Diagnosis
The API being called doesn't exist on the target server because the server is using an earlier version of Web Deploy.
Resolution
Install the latest version of Web Deploy on the server.
The group of three errors share the following diagnosis and resolution:
Diagnosis
SQL DAC and its dependencies aren't installed.
Resolution
Use Web Platform Installer to install:
Diagnosis
The package or backup being created exceeds the maximum size of 4 GB.
Resolution
Use the archiveDir
provider when creating a package instead. Now, there is no solution for this limit with respect to automatic backups.
Diagnosis
MySqlDump took too long to respond to a given query.
Resolution
You can change how long Web Deploy waits for MySqlDump to return from a query by changing the value of the WaitAttemptsSettingInfo
and WaitIntervalSettingInfo
provider settings.
Diagnosis
Required dependencies couldn't be loaded.
Resolution
If you installed Web Deploy manually through the MSI, try reinstalling Web Deploy using Web Platform Installer, which helps to install required dependencies for you.
The error codes ERROR_SMO_NEEDED_FOR_SQL_PROVIDER, ERROR_USER_NOT_AUTHORIZED_FOR_IISAPP, and ERROR_SCRIPTER_NEEDED_FOR_SQLCE_PROVIDER codes share the following diagnosis and resolution:
Diagnosis
SQL Shared Management Objects (SMO) wasn't found or the installed version is too old.
Resolution
Install the latest version of SMO using Web Platform Installer.
Diagnosis
This error occurs because a connection couldn't be made to a database.
Resolution
Verify that:
Diagnosis
The DAC PAC action took too long to complete.
Resolution
Increase the amount of time that Web Deploy waits for a command to complete by specifying the CommandTimeout
provider setting.
Diagnosis
Azure Websites doesn't support creating new virtual applications or modifying existing application configuration on the server during a Web Deploy publish operation.
Resolution
You can create new virtual applications or modify existing configuration settings for your website through the Azure portal (https://portal.azure.com/). To do this,
Typically, this indicates an issue with validating the providers on the source. For instance, if you're trying to sync content from a source file share and you don't have access to the file share, you may see this error code. For such issues, ensure that you have access to all of the source data you would like to publish from.
A generic error code to indicate that there was a problem publishing a database. Typically the stack trace and message associated with this code should indicate the actual error being thrown by either SQL Management Objects or SQL Data-Tier Application Framework.
Training
Learning path
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization