Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Add Web Deploy Errors article #4
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonZiminSaritasa committed Jan 17, 2019
1 parent a0df386 commit 0de162b
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions DotNetDeploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [ASP.NET Deployment](AspNetDeployment.md)
- [ASP.NET Core Deployment](AspNetCoreDeployment.md)
- [SPA Deployment](SpaDeployment.md)
- [Web Deploy Errors](WebDeployErrors.md)

## Examples

Expand Down
57 changes: 57 additions & 0 deletions DotNetDeploy/WebDeployErrors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
Web Deploy Errors
=================

See the article: [Web Deploy error codes](https://docs.microsoft.com/en-us/iis/publish/troubleshooting-web-deploy/web-deploy-error-codes)

### ERROR_DESTINATION_INVALID

- Server DNS name is unknown.

```
Error Code: ERROR_DESTINATION_INVALID
More Information: Could not connect to the remote computer ("staging.saritasa.local"). Make sure that the remote computer name is correct and that you are able to connect to that computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_INVALID.
Error: The remote name could not be resolved: 'staging.saritasa.local'
```

### ERROR_DESTINATION_NOT_REACHABLE

- Server is stopped.
- Web Management service is stopped.
- Firewall blocks port 8172.

```
Error Code: ERROR_DESTINATION_NOT_REACHABLE
More Information: Could not connect to the remote computer ("staging.saritasa.local"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.
Error: Unable to connect to the remote server
Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.0.100:8172
```

### ERROR_USER_UNAUTHORIZED

- Deploy user name is wrong.
- Deploy password is wrong.
- Password of deploy has expired.
- Site name is wrong.
- User is not authorized for the web site in IIS Manager.

```
Error Code: ERROR_USER_UNAUTHORIZED
More Information: Connected to the remote computer ("staging.saritasa.local") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.
Error: The remote server returned an error: (401) Unauthorized.
```

### ERROR_CERTIFICATE_VALIDATION_FAILED

- Certificate has expired.
- Certificate common name is wrong (default WMSvc-Hostname).
- Server has several DNS names, certificate subject includes only one of them.
- Certificate is self-signed, but not added to trusted certificate authorities on build server.

```
Error Code: ERROR_CERTIFICATE_VALIDATION_FAILED
More Information: Connected to the remote computer ("staging.saritasa.local") using the specified process ("Web Management Service"), but could not verify the server's certificate. If you trust the server, connect again and allow untrusted certificates. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED.
Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Error: The remote certificate is invalid according to the validation procedure.
```

See the [instruction](https://github.com/Saritasa/PSGallery/blob/master/docs/WinRMConfiguration.md#generate-new-certificate) how to change WMSvc certificate.

0 comments on commit 0de162b

Please sign in to comment.