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.