以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  这个是什么了,一直提示  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=179063)

--  作者:qazlinle6
--  发布时间:2022/8/5 10:24:00
--  这个是什么了,一直提示

2022-08-05 10:21:40.2422
事件/函数: 项目,HttpRequest
无法访问已释放的对象。
对象名:“System.Net.HttpListenerRequest”。
   在 System.Net.HttpListenerRequest.CheckDisposed()
   在 System.Net.HttpListenerRequest.GetKnownHeader(HttpRequestHeader header)
   在 System.Net.HttpListenerRequest.get_UserAgent()
   在 UserCode.HttpRequest(RequestEventArgs e)


--  作者:有点蓝
--  发布时间:2022/8/5 10:26:00
--  
用到了异步函数?跟踪是哪个页面出错的
--  作者:qazlinle6
--  发布时间:2022/8/5 10:29:00
--  
不清?,太多人用了
--  作者:有点蓝
--  发布时间:2022/8/5 10:47:00
--  
用到了异步函数?
--  作者:qazlinle6
--  发布时间:2022/8/5 10:50:00
--  
 Select Case e.Path
        Case "testres.htm"
            sb.AppendLine("<meta name=\'viewport\' c>")
            sb.AppendLine("接收到的数据有:<br/><br/>")
            For Each key As String In e.PostValues.Keys
                sb.AppendLine(key & ":" & e.PostValues(key) & "<br/>")
            Next
            e.WriteString(sb.ToString)
        Case Else
            Dim p As String = e.path
            If p = "" Then p = "*"
            Dim dr As DataRow = DataTables("httprequest").SQLFind("path=\'" & p & "\' or \'" & p & "\' like path   ")
            
            \'If dr授择 IsNot Nothing AndAlso dr授择("授择")= "未授择"  Then
                \'Functions.Execute(dr授择("内部函数"),e)
            \'Else
            
            If dr IsNot Nothing AndAlso dr("端口分类") = "手机端" Then
                
                Functions.Execute(dr("内部函数"), e)
            Else
                \'Dim wb As New weui
                wb.InsertHTML("<p>杯具!页面丢失了!!</p>")
                wb.AppendHTML("<script>console.warn(\'" & e.path & "不在httprequest表,请检查是否没有设置.\')</script>")
                e.WriteString(wb.Build)
            End If
            
    End Select


用的这个,是不是

--  作者:有点蓝
--  发布时间:2022/8/5 11:01:00
--  
这个页面没有用到异步。其它页面不清楚了。

自己在每个页面里开头第一行,和最后一行加上日志记录记录页面进入和关闭提示,然后看看出错记录前后使用的是哪个页面。类似:http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=176383&replyID=180345&skin=1

--  作者:qazlinle6
--  发布时间:2022/8/5 11:08:00
--  
e.Handled = True \'通知系统异步函数执行完毕,可以关闭信道


这个是异步函数吗

--  作者:有点蓝
--  发布时间:2022/8/5 11:10:00
--  
是异步函数其中一个用法:http://www.foxtable.com/mobilehelp/topics/278.htm