于是做了个实验,三名用户随机点击不同页面来重现。
当一名用户发现错误时,其他用户点击同一页面分别报错如下:
Partial Public Class PageBase
Inherits System.Web.UI.Page
Protected Overrides Sub OnInit(e As EventArgs)
If Not IsPostBack Then
Response.Cache.SetNoStore()
End If
InitializeComponent()
If SessionBox.CheckUserSession = False Then
Response.Redirect("~/page/general/account/login.aspx")
End If
MyBase.OnInit(e)
End Sub
Protected Overrides Sub OnLoad(e As EventArgs)
If Not Me.IsPostBack Then
InitializeComponent()
End If
PageLoad()
MyBase.OnLoad(e)
End Sub
Protected Sub PageLoad()
If Page.Title = "" Then
Page.Title = SessionBox.Getmodelname '如果页面的标题为空,则取 SessionBox.Getmodelname
End If
End Sub
百度了一下,有人说是asp.net网站项目衔接上的问题,说是转成asp.net应用程序就解决了。我尝试转成asp.net应用程序又遇到ef升级的困难,见,现在进退维谷不知如何是好。