.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Error: Sys.WebForms.PageRequestManagerServerErrorException

Posted By:      Posted Date: October 13, 2010    Points: 0   Category :ASP.Net

When    I am going to export datatable into excel , I am getting a problem.

From Visual studio It's working fine but when I published it , gives error in windows 7

error : Sys.WebForms.PageRequestManagerServerErrorException

but when I browse through XP it gives error :Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500.

The code I used  for Export given below :








xlApp =

xlWorkBook = xlApp.Workbooks.Add(misValue);

xlWorkSheet = (Excel.

xlWorkSheet = (Excel.

xlWorkSheet.get_Range(xlWorkSheet.Cells[1, 1], xlWorkSheet.Cells[65535, 1]).EntireColumn.NumberFormat =

xlApp.Visible =



data = dataTable.Columns[i].ColumnName.ToString();

xlWorkSheet.Cells[1, i + 1] = data;







data = dataTable.Rows[i].ItemArray[j].ToString();

xlWorkSheet.Cells[i + 2, j + 1] = data;




xlWorkBook.SaveAs(sFileName, Microsoft.Office.Interop.Excel.

xlWorkBook = xlApp.Workbooks.Open(sFileName,misValue, misValue, misValue, misValue, mi

View Complete Post

More Related Resource Links

What is error Sys.Webforms.PageRequestManagerServerErrorException

I have a server button in an aspx page. On click of the button I am opening a new aspx page as follows:Protected Sub btnView_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnView.ClickDim script As String = "OnLoadComplete();window.open('ViewReport.aspx?id=" & requestId & "','mywindow','width=1000,height=675,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes,left=10,top=10');"ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "script1", script, True)       End Sub Sometimes not frequently when I click the button, I get an alert box with message as follows:Sys.Webforms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was : 500Please let me know why I am getting this error randomly and what is the solution to this.I guess there is some configuration issue as on one machine I am getting error, on other its working fine.ThanksVikas

SSRS 2008 error - Sys.WebForms.PageRequestManagerServerErrorException: status code 12029



I am executing a huge report in SSRS 2008, after some time the report doesn't renders and there is an error icon at the left bottom of the web page. When I click open it to see the details, it gives following error;

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while
processing the request on the server. The status code returned from the server was: 12029.

Any help on this will be appreciated.


Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object referen



 i have a dropdownlist and Datagrid control on form. i wanted to refresh the grid

on changing  the DropDown OnSelectedIndexChanged, but when i do change

the dropdown value then it give me fallowing error message.

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

Can any one help me, how to solve this problem?

Code given below.


                <asp:DropDownList ID="ddColor" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddColor_SelectedIndexChanged"
                    <asp:ListItem Selected="True">Red</asp:ListItem>

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the



 I am using Ajax RC 1.0

Initially my application was simple ASP.NET 2.0 application and later on client decided for implementing AJAX.

My form is containg datagridview inside UpdatePanel and one textbox also. datagridview is having all rows editable. I have master page implemented.

I am updating records on lost focus of any text box(inside datagridview  and outside also) 

Problem is that I am able to run my application locally without any problem. But when I am publishing my website on server it is giving me following error:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

I have uploaded following DLL's on server: AjaxControlToolkit.dll, AJAXExtensionsToolbox.dll, Microsoft.Web.Extensions.Design.dll and Microsoft.Web.Extensions.dll

Please let me know the solution of this problem.

sys.webforms.pagerequestmanagerservererrorexception 503 Error


Hi All,

I am using VS2005, .net2.0, Ajax with Oracle 11g and ODP.Net. I have a report that I am calling from .aspx page.
Its a complex report so its taking approx. 5mins. to load. I am using update panel.
But exactly after 3mins after the page load, I am getting this error.. "sys.webforms.pagerequestmanagerservererrorexception: 503" Error and its stop loading the page further.
This is happening only in DEV and UAT server(DEV & UAT both in the same box). This is working fine in my local system.

I donno whether this error related to timeout. So I have tried allmost all possibilities like..
1) Increasing the timeout by adding...<asp:ScriptManager id="ScriptManager1" runat="server" EnablePartialRendering ="true" AsyncPostBackTimeout ="36000">.
2) Increased the Oracle ODP.Net command timeout "OracleCommand.CommandTimeout = 36000"
2) Added.. <sessionState mode="InProc" timeout="3600"></sessionState> in the web.config file.
3) Added.. <httpRuntime timeout="3600"> in the web.config file.
4) IIS server, I have set these values for the "Default Website"....... "Connection timeout : 600 secs",&nbs

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: RAISEERROR


I'm getting this error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: You cannot add to the repair list until the barcode is added to Inventory first.

 Now the 'You cannot add to the repair list until the barcode is added to Inventory first.' is my own message being returned from

sql server.


I have a datagrid with a new button on it. When the user clicks on the button I insert a blank row in the grid. They then go to edit the record to put info in the grid.

Since the system is a barcode driven system, I check the barcode they entered to make sure it's in the system. If not I throw the message from sql server using the RAISEERROR event.

Here is the partial sql code:

	if not exists(select * from dbo.tblIndentification 
				where Identification_Barcode = @barcode) 
		RAISERROR(50020,11,1)  with NOWAIT
		return -1


Here  is the c# code:

                else if (e.CommandName.Equals("Update"))
                    //for use in conjuction when the user inserts a new row
                    if  (txtCurrentRowBeingEdited.Text=="")

Line 4723 Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an


I am using Visual Web Developer 2008 Express Edition SP1. I have created a Dynamic Data application for basic CRUD operations on some extremely simple admin tables (each table has 3 columns: ID, Code, and Description) with no foreign keys.  I get this error whenever I click on either the "Insert" or "Cancel" links on the insert.aspx page or on the "Update" or "Cancel" links on the edit.aspx page for any of these tables or if I click on a "Delete" link on the List.aspx page and then confirm the delete. The "Details" link on the List.aspx page works fine.

If I debug the error, it appears in a code block that starts with "Sys.Net.XMLHttpExecutor = function Sys$Net$XMLHttpExecutor()" in a ScriptResource.axd file.

When I created the DataClasses.dbml, I dragged the tables onto the left design surface (create classes) and they appear in the diagram (step 8 of the "To create the data model using LINQ to SQL" section of the walkthrough at http://msdn.microsoft.com/en-us/library/cc488469.aspx). However, I did not drag anything onto the right design surface (create methods). This may

Sys.WebForms.PageRequestManagerServerErrorException: An unknown


I have written a web application that allows user to view crystal reports. When they select the report, application shows the parameters and when they enter parameters and click on OK, it processes the report and displays it on screen. My problem is, I added the AJAX Update panel with Updateprogress control. Now when users enter the parameters and click on Ok, it runs sometimes and then suddenly gives the following message:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

I have triple checked my project to make sure there are no Response.Write / server.tranfer commands. What I have is a label control and it displays any error in the try catch block. Now when I have the AJAX controls, if there is an error it does not even display the error on the label. It either refreshes the screen or show the above error. I googled and could not find a proper solution for this. Only option is to remove the AJAX control. I use VS2005.

The problem is when I run the same report 20 times, 2 or 3 times I get the above error.


Any help is greatly appreciated.

Sys.WebForms.PageRequestManager ServerErrorException: An unknown error occurred while processing the



I am executing a SSRS 2008 report from report manager so it opens in a web browser. Since it is a big report it takes some time for execution. During this time i get an error icon on the left bottom of the web browser and the execution stops. When I click open the error icon to see the details it says,

"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12029." 

I have no clue what it is up to. Please help me on this.

The other relatively smaller reports are coming up successfully without any issue.

I am using SQL Server 2008 R2 64 bit ent. edition and the OS is Win Server 2003 64 bit SP 2.


WebForms.PageRequestManagerServerErrorException: Status code 500



I'm getting "Sys, WebForms.PageRequestManagerServerErrorException: an unknow error occured while processing the request on the server. the status code returned from the server was: 500".

I'm using a GridView and Button in an Update panel, and on click on the button i'm returning selected rows from the gridview which was throwing the above error in javascript popup. Specifically this error is coming only if I assign "DataKeysNames" property of the gird view. Otherwise, it is working fine.

Please help me how to resolve this error.

Thanks inadvance





Error Help: Sys.WebForms.PageRequestManagerParserErrorException


Hello Everyone,

I've checked out Eilon's blog on this error, tried everything he mentioned, and it still doesn't work.  Also, I've added the "enablepartialrendering" to my script manager and it points me to another error that I can't seem to fix ("sys.webforms.pagerequestmanager is null...").

That being said, I have 2 pages in the same directory.  Telerik AJAX controls work fine on one but do not work on the other, the one giving me this error.  The 2 pages are set up identically, Telerik loading panels, ajax panels, radgrids, tab strips, multi-page viewers, the code behind...

I get the above error when I try clicking the "add new record" button.

What could the problem be?  If I need to paste some code in here to diagnose, please let me know and I will do so.  Thanks for taking the time out of your day to assist me.


A solution for the Sys.Webforms.PageRequestManagerServerErrorException problem


I was receiving the Sys.Webforms.PageRequestManagerServerErrorException error with an ASP.NET AJAX project I was working on.  I searched the Forums and other sources and found some common recommendations, but none worked.  Here's a summary of the cause and solution:

1) The web.config had the customErrors tag mode="RemoteOnly" and a custom Error page.  This caused the exception to happen with server deployments, but not show itself with local development environments.

2) The custom Error page causes the Response to AJAX Request to be altered and therefore causing the PageRequestManagerServerErrorException

3) Setting the AllowCustomErrorsRedirect="false" on the ScriptManager prevents the custom Error page from being used with AJAX Requests - http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.allowcustomerrorsredirect.aspx.

4) Define an OnAsyncPostBackError event handler on the ScriptManager to handle exceptions and set the OnAsyncPostBackErrorMessage to a user friendly error message the can be displayed to the user - http://msdn.microsoft.com/en-us/library/system.web.ui

Getting an error while trying to debug an ASP.NET (WebForms) app that I've migrated


I'm trying to migrate an ASP.NET 2.0 app (WebForms) to ASP.NET 3.5.  I've finally fixed a 500.19 IIS 7.5 error I was having.  Now it will run, so long as I don't attempt to debug it.  If I do attempt to debug it I get an error message.  I've searched for help on this error and there's precious little out there.  Here's the text of the error message:

"Unable to start debugging on the web server.  Check for one of the following.

1) The application you are trying to debug uses a version of the Microsoft .NET Framework that is not supported by the debugger.
2) The debugger has made an incorrect assumption about the Microsoft .NET Framework version your application is going to use.
3) The Microsoft .NET Framework version specified by you for debugging is incorrect.

Please see the Visual Studio .NET debugger documentation for correctly specifying the Microsoft .NET Framework version your application is going to use for debugging."

Well, as far as I know, I'm using the correct version of the .NET Framework (3.5) for this app.  Although I am not as familiar with IIS 7.5 on Windows 7.  Anyway, I could use help on this error, please.

Sys.WebForms.PageRequestManagerServerErrorException - Specified cast is not valid



I'm getting the error in the subject whenever I run my application.  I think that it may be related to this:  http://forums.asp.net/p/1038043/1438409.aspx#1438409 and since I have <compilation debug="true" />, I think setting that to false may aid not getting this, as is what it seems as if I read.  So, Is that correct, or is this related to something else?


What's new in ASP.NET 4.0 - Part II - Routing in Webforms

This post covers one such feature which is Routing in Webforms. Although Routing was available even in .NET 3.5 SP1, (check this excellent post by Phil Haack on implementing Routing in ASP.NET 3.5 with .NET 3.5 SP1), it was kind of less known. Also the plumbing work was too much for getting it implemented.

IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend