Web服务线程无法在IIS 7.5上启动 [英] webservice threads not starting on IIS 7.5

查看:62
本文介绍了Web服务线程无法在IIS 7.5上启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经查看了关于这个主题的类似文章而没有真正解决我面临的问题。



我有一个包含两个的#Web服务线程,它们都在我的开发机器上的ASP.NET开发服务器上进行测试时完全启动和工作,这可能表明代码是有序的。



因为我打算在IIS 7.5上部署它,我决定在我的开发机器上的IIS 7.5的本地副本上测试它。在IIS上,我注意到线程拒绝启动。在我使用线程之前,我使用了System.Timers Timer和System.Threading Timer具有相同的行为,也就是说,Timers在我的ASP.NET开发服务器上运行但在IIS上测试时拒绝工作。请问,这可能是什么原因,我该如何解决这个瓶颈。



非常感谢您的贡献。

I have looked at similar articles on this topic without actually getting a solution to the problem i'm facing.

I have a c# web service that contains two threads and they all start and work perfectly when tested on the ASP.NET development server on my development machine, which might suggest that the code is in order.

Since I intend to deploy it on IIS 7.5, I decided to test it on a local copy of IIS 7.5 on my development machine. On IIS, I noticed that the threads refuse to start. Before I resorted to using threads, I have used System.Timers Timer, and System.Threading Timer with the same behaviour, that is, the Timers worked on my ASP.NET development server but refused to work when tested on IIS. Please, What could be the reason for this and what do I do to solve this bottleneck.

Thanks so much for your contributions.

推荐答案

我刚刚学会了不应该在Web服务中使用线程的困难方法。删除线程后,它仍能正常工作。
I just learnt the hard way that I wasn't supposed to use threads in the web service. After removing the threads, it still worked fine.


这篇关于Web服务线程无法在IIS 7.5上启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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