我創建了一個網站並將其託管在Windows Server 2003上。我在整個頁面中使用了帶有更新面板標記的Ajax 3.5。Sys.WebForms.PageRequestManagerServerErrorException:發生未知錯誤代碼12152
我的第一頁是隻包含下拉菜單和按鈕的主頁。
當我從下拉菜單中選擇文本並點擊按鈕。它重定向主頁面。
主頁面包含一些文本框和更新面板上的按鈕。
例如,
<CC1:ToolkitScriptManager ID="sm" runat="server" />
<div>
<asp:UpdatePanel ID="update" runat="server">
<ContentTemplate>
<table cellpadding="0" cellspacing="0" border="0" width="960px">
<tr>
<td align="left">
<asp:Panel ID="pnlAjax" runat="server" Width="500px" BorderStyle="Double" BorderWidth="5" BorderColor="Brown">
// Code Here
// This a the few part of the code.
</asp:panel>
</td>
</tr>
<tr>
<td>
<asp:button ID="btnSubmit" runat="server" text="Submit"/>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
我沒有使用Asyncpostbacktrigger標籤。當我填充文本框中的詳細信息並單擊提交按鈕時,將詳細信息保存在sql server數據庫中。它不處理,並重定向到包含下拉列表和一個按鈕沒有顯示當我從IIS中運行這個網站它顯示下面的消息,Windows Server 2003上的任何消息主頁:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12152
我用Google搜索這個但沒有幫助。什麼是問題?有趣的是,這個網站在Windows XP上運行良好。請幫助解決問題。
您使用的Response.Redirect()是服務器端代碼 – pmtamal