应用程序首次调用webservice太慢了 [英] Application first call webservice is too slow

查看:257
本文介绍了应用程序首次调用webservice太慢了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,当我的应用程序(.Framework2.0 C#)首先调用webservice时,花费20+秒,然后第二次调用它只花费不到1秒,并且当我重新启动我的应用程序时(C#) ,然后再次第一次调用很慢然后加速。

hello,when my application(.Framework2.0 C#) first call webservice,it cost 20+ seconds,then second call it just cost less than 1 seconds,and when I restart my application(C#),then again first call is slow then it speeds up.

问题是什么?谢谢。

推荐答案

在您的网络服务成功完成后,或者每次限制客户端申请时,您是否会遇到此延迟?

Do you experience this delay when you reach your web service for the first time after it has been complied or each time you restrart your client application ?

第一次访问Web应用程序(Web服务的主机)时,此应用程序是动态编译的,这可能就是您有这么长时间延迟的原因。

The first time your reach a web application (host for your web service), this application is dynamically compiled, this may be why you have such a long delay.

这篇关于应用程序首次调用webservice太慢了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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