无法浏览服务网址. [英] Not able to browse the service url.

查看:75
本文介绍了无法浏览服务网址.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个已部署在开发服务器上的wcf服务.

i have a wcf service which i have deployed on the development server.

它被浏览.

但是当我尝试从本地计算机浏览它时,并没有被浏览.

but when i am trying to browse it from the local machine it's not getting browsed.

我尝试添加Visual Studio中的引用,但将错误抛出为

i have tried to add the reference from the visual studio but it's throwing the error as

元数据包含无法解析的引用.

the metadata contains a reference that cannot be resolved.

我将服务托管在其他端口上,而不是默认端口上.

i have hosted the service on the different port rather than default port.

推荐答案

您好EmpAnsar,

Hi EmpAnsar,

>>当我尝试从本地计算机浏览它时,没有被浏览.

>> when i am trying to browse it from the local machine it's not getting browsed.

从本地计算机的Web浏览器中浏览时遇到什么错误?您可以在开发服务器和本地计算机上与我们分享您的网址吗?

What error did you get when you browse it from local machine web browser? Could you share us your urls in development server and local machine?

您需要使用IP地址或计算机名而不是localhost,此外,还需要将在iis中为wcf服务配置的端口号添加到url.

You need to use ip address or computer name instead of localhost, in addition, you need to add port number which you configured for your wcf service in iis to url.

这很简单.

http://computer name:81/WCFSample/Service1.svc
http://IPv4 Address:81/WCFSample/Service1.svc

最好的问候,

Best Regards,

爱德华


这篇关于无法浏览服务网址.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆