简体   繁体   English

无法从IIS中访问服务

[英]unable to hit service from IIS

when i hit a service using localhost the application run properly but when i hit it with IIS it doesnot reach to that service code 当我使用本地主机访问服务时,应用程序可以正常运行,但是当我使用IIS对其进行访问时,它无法访问该服务代码

code run properly when hit with localhost .. similarly when use iis , it doesnot even hit the service 使用localhost时,代码正常运行。类似使用iis时,它甚至都不会运行该服务

1.var urlreport = " http://localhost:57451/Service1.svc/ "; 1.var urlreport =“ http:// localhost:57451 / Service1.svc / ”; 2.var urlreport = " http://206.19.38.20/report/Service1.svc/ "; 2.var urlreport =“ http://206.19.38.20/report/Service1.svc/ ”;

when the first link use to hit the service application run properly .. problem occur when i use 2nd link(2). 当第一个链接用于命中服务应用程序时,运行正常..当我使用第二个链接(2)时出现问题。

thanks in advance . 提前致谢 。

我认为根据“ http:// localhost:57451 / Service1.svc / ”,错误的url变为http://206.19.38.20/Service1.svc/从指定的代码中删除报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM