WPF超时连接到Web服务 [英] WPF timeout connecting to web service

查看:82
本文介绍了WPF超时连接到Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已经运行了一段时间的应用程序.它是一个完全受信任的XPAB应用程序,可连接到针对所有数据库数据的Web服务.该Web服务与该应用程序位于同一服务器上.

I have an application that has been working for some time now. It is a full trusted XPAB application that connects to a web service for all database data. The web service is on on the same server as the application.

最近,我遇到了各种用户的问题.由于某种原因,连接到Web服务时存在超时.如果您从机器转到网址,然后转到Web服务,则该地址就在那里.如果您在服务器上执行该功能, 它是瞬时的.但是,如果XPAB应用程序尝试连接,它将超时.而且要花整整一分钟才能说超时.

Recently I have encountered a problem with various users. For some reason there is a timeout connecting to the web service. If you go to the web address from the machine and go to the web service, it is there. If you execute the function on ther server, it is instantanious. But if the XPAB application tries to connect, it times out. And it takes it's full minute to come back saying that it timed out.

这并非始终发生.我在网络上有一个应用程序,只有一个人无法连接.我们禁用了防火墙和病毒扫描程序,并且仍然相同.

This does not happen all of the time. I have an application on the web, and only one person cannot connect up. We disabled firewall and virus scanner, and it is still the same.

如果我尝试连接到另一台机器上的Web服务,我现在也遇到同样的问题.我可以正确添加Web服务,它可以获取所有功能.但是,当我尝试运行该应用程序时,它会超时.我重新连接到本地计算机上的Web服务, 而且有效.

I am having the same problem now if I try to connect up to a web service on another machine. I can add the web service correctly, and it gets all of the functions. But when I try and run the app, it timesout. I reconnected to a web service on my local machine, and it worked.

我最近都应用了所有最新的Service Pack.

I rencently applied all of the latest service packs.

推荐答案

能否在两端提供绑定配置?绑定中可能存在一些问题.您正在使用什么操作系统?

Can you give the binding configuration on both ends? Perhaps there is some issue in your binding. What is the OS you are using?


这篇关于WPF超时连接到Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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