views:

366

answers:

1

Hi !

While making my first ajax attempts, I decided also, to go to use IIS hosted WCF now. The strange thing is, that the WCF cannot process several requests parallel for the same user/session, if sessionmode is enabled! If sessionmode is disabled on asp.net, the requests are processed parallel. The broser/client may execute several different requests, where some of them are long running. This blocks all further requets and make my ajax app unusable.

This applies to asmx [webservices] also. I had a big hope, to compile the webservice methods using "IReadOnlySessionState" interface, but this has - in oppsite to webpages - no influence. But I need access [most times readonly] to the asp.net session!

Does someone knows any solution to this problems.

Anyway, thanks a lot!

br--mabra

A: 

I found this:

http://blogs.msdn.com/silverlightws/archive/2009/09/30/having-a-pollingduplex-service-and-any-other-wcf-service-in-the-same-website-causes-silverlight-calls-to-be-slow.aspx

Which states,

"All WCF services require read/write session state access if you enable ASP.Net sessions, which causes the replies to be queued sequentially. Ideally user should be able configure the WCF handler to be read only, which would allow polling duplex services to work with sessions. Unfortunately this is unsupported at this point."

...the only thing I can think of is if there's some way to manually force early release of the lock. I'm looking into that now.

Ash Eldritch
Hi !Thanks for your posting!This explains just another reason to NOT use WCF.I tried WebServices, which seems to have the same gehavoir.Although it is more work, I am using ASMX with concurreny in place .... MS new technoligies are sometimes from stonehenge ...Thanks a lot!!--mabra
mabra