拙网论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 223|回复: 2

WCF技术应用

[复制链接]

949

主题

1001

帖子

3736

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3736
发表于 2019-8-14 10:36:59 | 显示全部楼层 |阅读模式
平台:VS2017
发布WCF服务Web Deploy error codes
Remote Debug ASP.NET on a Remote IIS Computer

ERROR_DESTINATION_NOT_REACHABLE
Diagnosis: Web Management Service or Remote Agent is not installed or unreachable on the remote computer.

Resolution: Verify that Remote Agent Service or Web Management Service are started on the remote computer, depending on which one you are connecting to. You can do a "net start wmsvc & net start msdepsvc" on the remote computer to ensure these services are started. Also, ensure that a firewall is not interrupting communications with the destination.
  1. C:\Users\Administrator>net start wmsvc
  2. Web Management Service 服务正在启动 .
  3. Web Management Service 服务已经启动成功。

  4. C:\Users\Administrator>net start wmsvc
  5. 请求的服务已经启动。
复制代码
ERROR_COULD_NOT_CONNECT_TO_REMOTESVC
Diagnosis: Web Deploy cannot connect to the remote service.

Resolution: Ensure that:

You can ping the remote machine
That the msdepsvc or wmsvc service is started on the remote server.
Your firewall is not blocking incoming connections of your ports on the destination. If you used the default installation, then it would be 80 for msdepsvc and 8172 for wmsvc.



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

949

主题

1001

帖子

3736

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3736
 楼主| 发表于 2019-8-14 17:41:25 | 显示全部楼层
回复

使用道具 举报

949

主题

1001

帖子

3736

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3736
 楼主| 发表于 2019-8-14 20:12:14 | 显示全部楼层
  1.       <serviceBehaviors>
  2.         <behavior name="">
  3.           <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
  4.           <serviceDebug includeExceptionDetailInFaults="true" />
  5.         </behavior>
  6.       </serviceBehaviors>
复制代码
includeExceptionDetailInFaults="true"可以让调试Client的时候产生调试信息。否则bug不好找。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|抱朴守拙BBS

GMT+8, 2025-5-25 22:21 , Processed in 0.194420 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表