GVKun编程网logo

asp.net – Sys.WebForms.PageRequestManagerServerErrorException 12031

17

在本文中,您将会了解到关于asp.net–Sys.WebForms.PageRequestManagerServerErrorException12031的新资讯,并给出一些关于"System.Out

在本文中,您将会了解到关于asp.net – Sys.WebForms.PageRequestManagerServerErrorException 12031的新资讯,并给出一些关于"System.OutOfMemoryException" exception when you execute a query in SQL Server Manageme...、AJAX 中Sys.WebForms.PageRequestManager的事件激发顺序、appium 报错:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occu、ASP.NET -- WebForm -- ScriptManager 类的实用技巧。

本文目录一览:

asp.net – Sys.WebForms.PageRequestManagerServerErrorException 12031

asp.net – Sys.WebForms.PageRequestManagerServerErrorException 12031

我偶尔从AJAX.NET应用程序获取以下弹出窗口
Sys.WebForms.PageRequestManagerServerErrorException: An UnkNown error occurred while processing the request on the server. The status code returned from the server was: 12031

从Microsoft kb起状态码表示一个ERROR_INTERNET_CONNECTION_RESET,但是它并没有说明触发错误的根本问题是什么。

如何记录/跟踪/ etc生成弹出窗口的底层错误?

解决方法

这是一个观察状态的问题,但与时间无关,但与大小无关。尝试在您的web.config中使用maxRequestLength。

"System.OutOfMemoryException" exception when you execute a query in SQL Server Manageme...

Symptoms


When you use Microsoft SQL Server Management Studio (SSMS) to run an SQL query that returns a large amount of data, you receive an error message that resembles the following:

An error occurred while executing batch. Error message is: Exception of type ''System.OutOfMemoryException'' was thrown

 

 

Cause


This issue occurs because SSMS has insufficient memory to allocate for large results.

 

Note SSMS is a 32-bit process. Therefore, it is limited to 2 GB of memory. SSMS imposes an artificial limit on how much text that can be displayed per database field in the results window. This limit is 64 KB in "Grid" mode and 8 KB in "Text" mode. If the result set is too large, the memory that is required to display the query results may surpass the 2 GB limit of the SSMS process. Therefore, a large result set can cause the error that is mentioned in the "Symptoms" section.

 

 

Workaround


To work around this issue, try one of the following methods.


Method 1: Output the results as text
Configure the query window to output the query results as text. A text output uses less memory than the grid, and it may be sufficient to display the query results. To make this change, follow these steps:

  1. Right-click the query window.
  2. Click Results to.
  3. Click Results to Text.


Method 2: Output the results to a file
Configure the query window to output the query results to a file. A file output uses a minimal amount of memory. This reserves more memory for storing the results set. To make this change, follow these steps:

  1. Right-click the query window.
  2. Click Results to.
  3. Click Results To File.
  4. Run the query, and then select the location in which to save the results file.


Method 3: Use sqlcmd
Use the sqlcmd tool instead of SSMS to run the SQL queries. This method enables queries to be run without the resources that are required by the SSMS UI. Additionally, you can use the 64-bit version of Sqlcmd.exe to avoid the memory restriction that affects the 32-bit SSMS process.

 

原文链接

 

AJAX 中Sys.WebForms.PageRequestManager的事件激发顺序

AJAX 中Sys.WebForms.PageRequestManager的事件激发顺序

原帖地址:http://www.cnblogs.com/fifastar/archive/2008/06/02/1212225.html


测试代码如下:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="AjaxCtpWebDemo.Test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<%=DateTime.Now.ToString() %><hr/>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<%=DateTime.Now.ToString() %>
<hr/>
<asp:Button ID="Button1" runat="server" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
<script type="text/javascript" language="javascript">
Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(
function(sender,e)
{
alert("add_initializeRequest");
}
);


Sys.WebForms.PageRequestManager.getInstance().add_endRequest(
function(sender,e){
alert("add_endRequest");
}
);


Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(
function(sender,e){
alert("add_beginRequest");
}
);


Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(
function(sender,e){
alert("add_pageLoaded");
}
);

Sys.WebForms.PageRequestManager.getInstance().add_pageLoading(
function(sender,e){
alert("add_pageLoading");
}
);

</script>

</form>
</body>
</html>

最终结果如下:

1.页面第一次进入时,会首先激发add_pageLoaded事件

2.异步提交时,事件的激发顺序如下:

add_initializeRequest

add_beginRequest

add_pageLoading

add_pageLoaded

add_endRequest

add_pageLoaded

appium 报错:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occu

appium 报错:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occu

appium进行手机浏览器的自动化测试启动代码如下

#使用手机浏览器进行自动化测试
import time
from appium import webdriver

#自动化配置信息
des={
'platformName': 'Android',
'platformVersion': '8.0', #填写android虚拟机的系统版本
'deviceName': 'SamSung galaxy S9', #填写安卓虚拟机的设备名称---值可以随便写
'browserName': 'chrome', # 直接指定浏览器名称参数为chrome【重点添加了这一步】
'udid': '192.168.235.103:5555', # 填写通过命令行 adb devices 查看到的 uuid
'noreset': True, # 确保自动化之后不重置app
'unicodeKeyboard': True,
'resetKeyboard': True,
'chromedriverExecutable': r"C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe" #使用指定的浏览器驱动-匹配手机上的谷歌浏览器
}
driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', des)
driver.implicitly_wait(5)
driver.get('http://hao.uc.cn/') #打开UC网页

 

报错如下:

selenium.common.exceptions.WebDriverException:
Message: An unkNown server-side error occurred while processing the command. Original error: Can't stop process;
it's not currently running (cmd: ''C:/Program Files/Appium/resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/win/chromedriver.exe' --url-base\=wd/hub --port\=8001 --adb-port\=5037 --verbose')

 

原因

折腾了相当久 ,两个晚上 才找到原因,代码没有问题,问题出在浏览器版本与chromedriver版本不一致导致的

解决办法

下载与浏览器版本一致的驱动后,再次启动就成功了。

对应浏览器版本的Chromedriver下载地址:https://npm.taobao.org/mirrors/chromedriver

chromedriver版本匹配地址:https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md

 

ASP.NET -- WebForm -- ScriptManager 类

ASP.NET -- WebForm -- ScriptManager 类

ASP.NET -- WebForm -- ScriptManager 类

通过 ScriptManager 可注册随后将作为页面一部分呈现的脚本。

1. 注册并立即执行脚本。 --RegisterStartupScript()方法。

 例:在ASP.NET中实现和 javascript 一样弹出提示窗口的效果。

protected void Button1_Click(object sender, EventArgs e)
    {
        string strMsg = "今年是" + DateTime.Now.Year + "年。";
        string strScript="alert(''"+strMsg+"'')";
        ScriptManager.RegisterStartupScript(this.Page,typeof(string),"Test",strScript,true);
    }

2. 运行结果:

 

今天关于asp.net – Sys.WebForms.PageRequestManagerServerErrorException 12031的介绍到此结束,谢谢您的阅读,有关"System.OutOfMemoryException" exception when you execute a query in SQL Server Manageme...、AJAX 中Sys.WebForms.PageRequestManager的事件激发顺序、appium 报错:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occu、ASP.NET -- WebForm -- ScriptManager 类等更多相关知识的信息可以在本站进行查询。

本文标签: