从WindowsService调用WCF [英] Calling WCF from WindowsService

查看:79
本文介绍了从WindowsService调用WCF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...

我正在运行WindowsService,它将调用WCF服务的方法.因此,当从WindowsService向WCF发出请求时,我得到了错误....
有人可以帮我吗...

建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.验证实例名称正确,并且已将SQL Server配置为允许远程连接. (提供者:SQL网络接口,错误:26-查找指定的服务器/实例时出错.


谢谢,
Narasima

Hi all...

I am running the WindowsService which will call the method of WCF Service. So when the request is made from WindowsService to WCF i am getting the error ....
Can anybody pls help me regarding this...

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified.


Thanks,
Narasima

推荐答案

好吧,看来您已具备调试问题所需的所有信息.如果您将所有代码都放入控制台应用程序中可能会更容易,从而更容易通过调试器运行.
Well, it looks like you have all of the information you need to debug the problem. It might be easier if you take all the code and put it into a console app so it''s easier to run through the debugger.


那么您在某个地方是否遇到Silverlight问题?
如果没有,则您在问题中输入了错误的标签.
So are you facing a problem with Silverlight somewhere?
If not, you''ve put the wrong tag in your question.


这篇关于从WindowsService调用WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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