.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

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

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :ASP.Net
**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

View Complete Post

More Related Resource Links

(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!


Problem when installing Microsoft SQL Server 2005 Reporting Services Add-in for Microsoft SharePoint


I have configured the SharePoint Production Server(Standalone) with WS 2008 64 bit version, SQL Server 2005 with SP3 , Visual Studio 2008 and MOSS 2007(SP3). I have configured SSRS 2005 in SharePoint integration mode. Everything works fine till the last step. Now, i am trying to install Microsoft SQL Server 2005 Reporting Services Add-in for Microsoft SharePoint Technologies feature and failed. I am getting below error message.

Product: Microsoft SQL Server 2005 Reporting Services Add-in for Microsoft SharePoint Technologies -- You must first install SharePoint Server before installing SQL Server 2005 Reporting Services Add-in for SharePoint Technologies

Any help will be very appreciated!


ReportViewer Error Asp.net Session expired

When i am connecting Report Manager report through our ASP.NET 2.0 application using Report Viewer control frequently we get message ASP.Net Session expired .              How can we avoid this error.While i directly opens Reports through the Report Manager reports are opening without any problem.   My .Net application Code. ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://SERVER/reportserver");ReportViewer1.ServerReport.ReportPath = @"/myreport/reportname";

how to set Session never expired?

Hi, i'm developing a system that required not to timeout and go back to login page forever once login.is it possible to be done? 

re: Microsoft SQL Server 2005 Reporting Services Add-in for Microsoft SharePoint Technologies

To have access to the webpart "report viewer for sql server reporting services" you can of course install Microsoft SQL Server 2005 Reporting Services Add-in for Microsoft SharePoint Technologies. My question though is, does your SharePoint 2007 server have to be running in integrated mode so as to be able to install and use the report viewer web part? Thanks.

When Session is Expired then login page is show how do it

When Session is Expired then login page is show how do it

Report Viewer ASP.NET session has expired

I've found many posts about this error in this forum as well as other forums, however I have not found a solution that has worked for me yet.My report runs fine in Report Viewer and I can export it to PDF without a problem.  The problem occurs if I try running the report or exporting the report again, only 30 seconds later, I receive the session has expired error.There are no images in the report, so setting "AsyncRendering" to False doesn't work for me.I triedsetting <sessionState cookieless="true" /> in my web.config file but that didn't work either.I tried setting me.session.timeout = 120 on my page_load event but that didn't work.All attempts brought me back to the same error.  Hopefully some of the ideas above will help other people, but none have worked for me so far.  Please let me know if someone knows of a  solution/work around to this error.Thanks.

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>

Expired Certificate SQL Reporting Services SP2


We recently installed SQL Reporting Services SP2.  When we run Report Manager (i.e http://myserver/reports) and attempt to print a report using the Print control we get UAC prompts for both Vista and Windows 7.  If we click "Show Information About this Publishers Certificate" under UAC prompt it indicates the certificate expired on Feb 22, 2009.  Were the correct CAB files for installing the print control included in SP2?

Reserved.ReportViewerWebControl.axd and ASP.Net session expired


Hello and thanks for the forums!


I have a web site targeting framework 3.5 that uses web reports and a couple of them are causing me some headaches.  While I see on the forums and various places on the web different discussions regarding some of the same things I see in the errors, I don't really find anything that fits specifically what is occuring.  My users can eventually run the reports, but it takes 2 or 3 attempts before they do run.  I have been unable to duplicate the problem in development.  Everything I've read thus far says that there is a web.config handler missing but mine are in there.  But some of what I see being added as the handler is not necessarily what I have in mine and I'm curious if there might be a problem with how I have them entered.  I do have several other reports that never generate an error, so I'm at a loss as to what could be causing the problem.


First, the reportviewer dll's are in the bin folder.  My web.config has the following handler sections:

   <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

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=="")

Microsoft AJAX CDN

Content delivery networks (CDNs) are composed of "edge cache" servers that are strategically placed around the world at key Internet network points. These "edge cache" servers can be used to cache and deliver all types of content - including images, videos, CSS and JavaScript files.

Using a CDN can significantly improve a website's end-user performance, since it enables browsers to more quickly retrieve and download content. For example, instead of having a browser request for an image traverse all the way across the Internet to your web server to download, a CDN can instead serve the request directly from a nearby "edge cache" server that might only be a single network hop away from your customer (making it return much faster - which makes your pages load quicker).

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

CLR Integration With Microsoft SQL Server

Transact-SQL provides as much flexibility as possible but, because it is not a real programming language, it has some shortcomings about many issues (memory management, exception handling, debugging, file processing (or streaming), object-orientation (classes), or thread management). Transact-SQL also lacks features of normal libraries (arrays, collections, serialization, expressions, or string manipulations, etc).

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
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