在Webrole应用程序中使用WCF服务引用

发布于 2024-08-31 03:58:23 字数 489 浏览 2 评论 0原文

我开发了一个具有一个 Webrole 和一个 WCF 角色的云应用程序。我的 WCF 服务将充当模型并从数据库获取数据。当 WCF 服务在本地主机或 IIS 中运行时,我可以在我的 webrole 中获取它的服务引用。

但是当我在 Dev Fabric 中运行我的 webrole 和 wcf 服务时,我无法获取在 dev Fabric 上运行的服务引用,网址为 http://127.0.0.1/TestService.svc

我在 webrole 中使用的 web.config 是,

有人可以分享一些信息吗?我如何从 Web 角色获取在 dev Fabric 中运行的 WCF 服务的服务引用?

谢谢, 基兰

I have developed a cloud application with one Webrole and a WCF role. My WCF service will act as model and gets me the data from the database. I am able get the Service Referece of my WCF service in my webrole when it running either in localhost or from IIS.

But when i run my webrole and wcf service in Dev Fabric, i am unable to take the service reference which is running on dev fabric with the url http://127.0.0.1/TestService.svc.

The web.config i am using in webrole is,

Can somebody share me some information, how can i take the service reference of a WCF service which is running in dev fabric from a web role?

Thanks,
Kiran

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我很OK 2024-09-07 03:58:23

您提到了 web.config,但您似乎没有将其包含在原始帖子中。无论如何:您缺少 URI 上的端口号。

You mentioned the web.config, but it appears you didn't include it in your original post. Regardless: you are missing the port number on your URI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文