AJAX accessible long running service tasks blocking sub-sequent AJAX service requests in an ASP.NET Compatibility/Sessions enabled environment

后端 未结 1 1640
慢半拍i
慢半拍i 2021-01-25 17:27

I\'m having a problem described and solved at the following link

http://blogs.msdn.com/b/silverlightws/archive/2009/09/30/having-a-pollingduplex-service-and-any-other-w

相关标签:
1条回答
  • 2021-01-25 18:12

    The answer is here...

    In .NET 4, you can do this in Application_BeginRequest

    if (Context.Request.Path.EndsWith("xxx.svc")) Context.SetSessionStateBehavior(SessionStateBehavior.ReadOnly);

    -- How to force an IIS hosted WCF or ASMX [webservice] to use session object readonly?

    By changing the SessionStateBehavior of the callback service, I was able to isolate this service to be run non-sequentially and stop the blockages.

    Thanks Cine (https://stackoverflow.com/users/264022/cine)

    0 讨论(0)
提交回复
热议问题