.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


Posted By:      Posted Date: September 23, 2010    Points: 0   Category :ASP.Net
Are timeout errors not handled by AllowCustomErrorsRedirect or onasynpostbackerror? 

View Complete Post

More Related Resource Links


Hi there,  I have just installed the new beta. So nothing works again. Don't you just love this beta stuff :-)  I get a "Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out" when using a updatepanel. Why is that? I have placed <add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/> in my web.config. What is wrong here?

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.

Dynamic page customization in WebForms



I am developing an ASP.NET Webforms application for job advertisements. The application is hosted on my own server and enables registrated users to publish job advertisements with the possibility to submit job applications directly from web. The application essentially consists of two parts: job advertisements and job applications sub-apps. 

The job advertisement application uses RESTful approach, implemented as ASP.NET routing and makes no use of different state variables (like viewstate). I provide custom layout of job advertisement webpage for every client using XML serialization of my internal JobOffer class and using XML ASP.NET control with custom XSLT transformation sheet plus CSS to render the custom design. It is all fine and works perfectly.

The second (job applications) part provides users with a custom webform, which is partically dependent upon the original advertisement (regarding the minimal education level, eligible citizenship or work permissions, licences etc.) and can be tweacked using custom CSS. There is, however, no possibility for custom layout of the elements on this page, which provides a multi-tabbed navigation for different parts of job application. Hence the question 1 (see below).

The application is not ready yet, but I intend to keep it hosted on my own server and provide just some ki

(Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Re


 I am trying to use ReportViewer 9 in Visual Studio 8 but I get this error when I try to run the page:

The base class includes the field 'ReportViewer1', but its type (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Reporting.WebForms.ReportViewer).

Please help if you can!


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.

2 webforms accessing same data

In  a Distributed web application, of an industry2 computer operators are updating their clients information.I have the problem that When those 2 operators are updating the same client's information,for example: Client's Phone numberone of the Operator should get the information that "the phonenumber is already updated"How can I do it?Thanks

Upload file control intefering with javacript and Sys.WebForms.PageRequestManager.getInstance?

Ok I'm trying to use the dreaded Upload File control and it's not within an UpdatePanel. Here's what I have, I'm using jQuery to display messages on the client side from the server. One of the things I'm doing is I'm setting up a script to run using: Sys.WebForms.PageRequestManager.getInstance().add_endRequest(iamloading); and in my iamloading I have: function imaloading() {    $(document).ready(function () {        displayMessage();    }) } Not to bore you with details but the displayMessage is where I am doing the jQuery, this has worked for ever.Now I'm building this page with the Uploadfile control and this stops working and if I remove the control it works again.I've made sure that the function handler is created for iamloading but it never fires as though something has unregistered the event. Any help or suggestion would be of great healp.Thanks    

Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired

**A)** I have an asp.net page with a reportViewer control hosting a report in remote processing Mode. Whenever i would tried to export the report to excel or pdf, i could get the error      Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired I then came across this http://msdn.microsoft.com/en-us/library/ms178586.aspx and decided to resolve the problem by going with **SQL Server Mode** sessionState( http://www.nimbleuser.com/blogs/Knowledge_Base/knowledge_base/Installing/Configuring_the_Session_State_Database_for_Multi-Core_Web_Servers.aspx ) and the export problem was resolved. **B)** Now, i also have a completely different Windows Forms application deployed by ClickOnce deployment(.NET 3.5 SP1).  **In this windows application, i have a form with a WebBrowser control whose URL is the asp.net page mentioned in A above.**  Unfortunately, when the reportViewer asp.net page is displayed in the WebBrowser control which is on the windows form and i click the Export button, i get the error as in A above(`Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired` ). When i added the below code to the web.config file of the asp.net application, the problem was resolved     <sessionState mode="SQLServer" sqlConnectionString="server=myServer;UID=User1;P

showing no webforms to client

Hi, I have (probably for you) a strange question. How can a server receive a url from a script and not return a webpage. The server should only process some data of the params in the url.   So, the clientmachine, which runs the script, doesnot notice anything at all from the server. On the serverside it is like using only a module and not webpages for processing some logic. Can someone give me hand how to program that on the server (W 2003)? I am using vb.net 2003 en netframework 1.1

IE 7 with Webforms and Proxy Server

I have started having problems with our asp.net webform applications running behind a proxy since the user base have upgraded to IE7. Some postbacks seem to drop out and at times it is difficult to make controls on a page raise an event. It appears to be intermittant and I have been told there are issues around using IE7 behind a proxy with post requests. Is this the case and what are the options? Rewite in MVC? Does the issue of post requests behind a proxy remain in IE8? Any help greatly appreciated. Steven

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

An MVC view page in WebForms 4



I've read somewhere that one can actually mix web forms and MVC in the same app. I have a scenario that might benefit from this. I need to have a page where the FORM cannot have a RUNAT in it. It'll be used for file upload. I want almost like an old classic ASP type of page that I can still include some code behind logic. I think the answer is an MVC view page, is it not?

How do I go about creating this page?

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.


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.


WorkFlow using webforms in a workflow


I'd like to use an asp.net webform with workflows in MOSS 2007.  Meaning, I don't want to upload a document to start a workflow or use a document library.  I just want to use the tasks feature with approval process. 

I'd like to have someone fillout a asp.net webform, hit submit, and then start an approval process.  The problem that I have when testing this idea out, is that when the manager reviews the form that was filled out by the requester, you cannot see any data (data didn't carry over).

How do I go about making this idea work with workflows?  Is there any tutorials out there that show you how to use webforms instead of infopath and sharepoint designer?  I'm using Visual Studio 2008 C#.  I guess I want to know, Is using webforms in a workflow possible in sharepoint 2007? 

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.

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