WCF SQL连接错误Visual Studio 2010 [英] WCF sql connection error visual studio 2010

查看:65
本文介绍了WCF SQL连接错误Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Friends.,

我创建了一个WCF服务来从sql表中获取数据,当我直接使用该服务(调试)到另一个Visual Studio Web应用程序时,它可以正常工作.

之后,我将该服务托管在IIS中,之后,当我在同一Web应用程序中调用该服务时,它显示连接错误.

Hi Friends.,

I created a WCF service to get data from sql table and when i use that service directly(debug) to another visual studio web application it works fine.

After that i hosted that service in IIS,after that when i call that service in the same web application, it shows connection error.

How to resolve this?

推荐答案

请确保该服务的URL正确.该URL应设置为可配置.
Make sure the URL to the service is correct. The URL should be made configurable.


这篇关于WCF SQL连接错误Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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