网络应用在处理上共享同一个会话其他网络应用受阻 [英] Web app blocked while processing another web app on sharing same session

查看:110
本文介绍了网络应用在处理上共享同一个会话其他网络应用受阻的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS部署了两个web应用,即/ HRMS,/ TravelDesk。两者的WebApp通过ASPState的分享会中,配置信息,

 <的sessionState allowCustomSqlDatabase =真模式=SQLServer的stateConnectionString这一=TCPIP = 127.0.0.1:42424
sqlConnectionString =应用程序名称=门户网站;数据源=本地主机;初始目录= ASPState的;用户ID = SA;密码= dev2005无Cookie =false的COM pressionEnabled =真正的超时=720/>

一个用户登录在/ HRMS应用程序,从他进入导航应用TravelDesk一个新的窗口,本届会议是越来越横跨两个Web应用程序共享。

在TravelDesk应用中,用户试图上载一串信息的,而且它是花更多的时间来处理在服务器的请求。在平均时间我试图访问/ HRMS应用程序,但它没有响应,直到TravelDesk执行完成?

做会议将在SQLServer的锁?请指导我解决这个问题。


解决方案

 会话得到跨越两个Web应用程序共享

如果会话横跨两个Web应用程序共享,那么是的,这是什么原因。这次会议是锁定的响应。

要避免这种情况,在巨大的上传信息禁用会议(仅在该处理程序或网页,使载上)。

相对:更换ASP.Net的会议完全

Deployed two WebApplications in IIS namely /HRMS, /TravelDesk. Both WebApps are sharing session via AspState, the config information are

<sessionState allowCustomSqlDatabase="true" mode="SQLServer" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="Application Name=Portal;data source=localhost;Initial Catalog=ASPState;User ID=sa;Password=dev2005" cookieless="false" compressionEnabled="true" timeout="720"/>

A user is logged in an /HRMS Application, from that he is navigating into TravelDesk application on a new Window, the session is getting shared across the two web apps.

In TravelDesk Application, a user is trying to upload a bunch of information's, and it is taking more time to process the request in server. In mean time i am trying to access the /HRMS application but it is not responding until the TravelDesk execution complete?

do the session will lock in SQLServer? Please guide me to resolve this issue.

解决方案

 the session is getting shared across the two web apps

If the session is shared across the two web applications, then yes this is the reason. The session is lock the response.

To avoid this, on the huge upload information disable the session (only on the handler or on the page that make the upload).

Relative: Replacing ASP.Net's session entirely

这篇关于网络应用在处理上共享同一个会话其他网络应用受阻的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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