Dear all,
When I deploy my web project into my Web server,everything is work,but except the report does not work properly.
The config of my webserver is win2003 with IIS 6.0.And Imake use of the report in the local processing mode and set "sessions state mode=InProc","cookieless mode=UseCookie"on the page of the state management in IIS.
The error message is showed below
Server Error in '/' Application.
ASP.NET session has expired
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. | Stack Trace:
[AspNetSessionExpiredException: ASP.NET session has expired]
Microsoft.Reporting.WebForms.ReportDataOperation..ctor() +683
Microsoft.Reporting.WebForms.HttpHandler.GetHandler() +553
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +10
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
| Can anyone help me ? |
| JohnYG Thursday, April 27, 2006 9:43 AM |
There is a known bug with the report viewer and cookie based sessions. If you use acookieless session, the report should render correctly. |
| Brian Hartman - MSFT Tuesday, May 02, 2006 5:32 AM |
Dear Brian:
It is still giving the same error, even if I set the cookieless mode to true or false. I am using custom database on SQL 2000 to set the session state. Can you please advice. If there is a bug do we have patch.
Regards
Gaurav |
| Gaurav Rajput Tuesday, May 02, 2006 10:46 AM |
I apologize, I had things backwards in my original post. Our known issue is with cookieless session. Cookie sessions (which you had set originally and is the default) should be fine.
Are you receiving the error immediately or do you need to let the browser sit idle for a while? Have you confirmed that your browser has cookies enabled? Which browser are you using? |
| Brian Hartman - MSFT Tuesday, May 02, 2006 2:53 PM |
After I add "ReportViewer1.localReport.Refresh()" in the PageLoad() method in the page that contain Report Viewer.Then it works properly ,but I don't knowwhy it work.The brower that I used is IE and it is support cookies.
Now I have another problem that I need to deploy my source code,otherwise the report viewer doesn't work properly.I have tried to deploy the source code for report only,it works but the export function cause error.Can anyonehelp me? |
| JohnYG Wednesday, May 03, 2006 1:41 AM |
I alsoadd "<sessionstate stateConnectionString="tcpip=127.0.0.1:8001"/>" into the web.configfile
But I don't know why it works. |
| JohnYG Wednesday, May 03, 2006 2:17 AM |
I I am having the same issue, but mine only occurs once when the application starts. If I press Refresh it works fine. I've set cookieless="false" and I've set cookieless="true" with the same results.
I do want to ask Microsoft when we can see a fix to this problem? I would also guess that additional bugs to VS 2005 also needs to occur. Even though VS 2005 is an absolutely terrific product, I think it's completely arrogant on Microsoft's part not to deploy an SP release on VS 2005. |
| fdgrau Thursday, May 04, 2006 1:40 PM |
We are investigating this issue and I will report back as soon as I have more information.
For information on the Visual Studio 2005 Service Pack, please look here: http://msdn.microsoft.com/vstudio/support/servicing |
| Brian Hartman - MSFT Thursday, May 04, 2006 2:53 PM |
Thanks for the "ReportViewer1.localReport.Refresh() tip. I also had a
problem with deploying my app. I had to copy the
Microsoft.ReportViewer.Common.dll,
Microsoft.ReportViewer.ProcessingObjectModel.dll and
Microsoft.ReportViewer.WebForms.dll manually to the bin folder. Once I
did that the reports worked fine, with the exception of the occassional
Session Timeout error. |
| DRN Tuesday, May 09, 2006 7:55 PM |
Hi, I am getting the same "ASP.NET session has expired" error in the report viewer control.
1. The error page doesn't appear immediately.
2. I am running sql server 2000 and VS2005
3.Tried without success:
a) Refresh on page load,
b) <sessionstate stateConnectionString="tcpip=127.0.0.1:8001"/> ,
c) cookieless="false"
4. Can't see a bin folder in my app folder?
The app works fine from the developer's machine.
Any suggestion will be highly appreciated!!
|
| dmc7198 Monday, May 15, 2006 9:44 PM |
If you cannot work with it, you cancopy your whole project with source code to the webserver.(it means that your source code will be seen by other)
It may be work!
I hope it can help you...... |
| JohnYG Friday, May 19, 2006 1:29 AM |
I too have been struggling with this session expiration message. My work-around has been to set the session timeout to 1440 min (1 day). This seems to work, most of the time. I would love to hear the MS solution to this...
I have also been unable to solve the 'Execution 'sessionID' not found.' message that appears in the ReportViewer in my web app. I have not been able to pinpoint exactly why this error occurs, but it seems to show up in the ReportViewer every so often. If I choose and render another report, it works just fine. If anyone has any suggestions about this one, let me know please.
thanks,
Michael R. |
| Michael R Friday, May 19, 2006 10:08 PM |
I am also getting the same timeout behavior. This is very upsetting. MSFT, please fix this soon. |
| dotnet4me2 Wednesday, May 31, 2006 6:10 PM |
We are running into this same issue with a client I am working
with. The ReportViewer control works fine until we set cookless
to true. Is there a timeframe in which this issue is expected to
be addressed?
The only workaround I found so far was to set AsyncRendering to
False. The trouble I ran into with doing this was that all of the
images in the reports then would no longer appear.
Jason
|
| Jason Strate3 Thursday, June 08, 2006 4:50 PM |
I was using the machine name when accessing the application. My machine name includes an underscore: abc_1234 and that was creating the problem.
I tried using the ip address and it works just fine.
Hope this helps you as well. |
| dmc7198 Friday, June 09, 2006 2:11 PM |
I was having the same problem. I had to change the reportviewer AsyncRendering property to False in order for the problem to go away. It seems there is a problem with the controls asyncronous process.
Performance was somewhat impacted but at least it generates the report without an error. |
| DRN Monday, June 12, 2006 7:35 PM |
Brian,
I was able to work around the session timeout error by changing the reportviewer's AsyncRendering property to False.
I suspect there may be a problem with the underying Asyncronous processing in .NET 2.0. I have also experienced some problems with IAsysncReult interface.
|
| DRN Monday, June 12, 2006 7:59 PM |
Same problem. I can't set Async processing to False, because this is an intranet application and lots of users have Firefox; If you set Async processing to False, SQL Reporting Services bugs out the rendering in Firefox all the text gets overlapped.
|
| chuck02323 Sunday, July 09, 2006 11:48 PM |
If you set Async to false, report rendering in Mozzila/Firefox browsers will barf. All the fields will jumble up to the left of the report
viewer. |
| chuck02323 Wednesday, July 12, 2006 3:57 PM |
We just recently managed to reliably reproduce the "execution session not found" error and are investigating the cause. We should know more soon. |
| Brian Hartman - MSFT Thursday, July 13, 2006 1:49 AM |
We get this if anyone tries to do an Excel or PDF export. We are using local reports in asp.net. The export process takes several gig of memory and 85% cpu on a 4 cpu box and finally crashes. This naturally destroys all the session memory. So for us the sympton is session time out, but the cause is exports.
p.s. We have a pay support call in to MS, no resolution/progress after 3 weeks.
|
| chuck02323 Wednesday, August 02, 2006 9:18 PM |
Brian, If you guys have found the problem to this, would you please tell the folks looking at: SRX060712604389 |
| chuck02323 Tuesday, August 22, 2006 5:34 PM |
Any update on the status of this issue? |
| Tom Bell Tuesday, September 12, 2006 3:38 PM |
Brian Hartman-
Any update on the "ASP.NET Session Expired" error message. Haven't heard anything in this thread for about 4 months.
I assume it will be fixed in Vis Studio 2005 SP1 which is supposedly due Q3 2006 (running short on time for that to be true ;-) In the meantime, is there a hotfix number you can refer us to? Or a workaround?
Thanks. |
| furmangg Wednesday, September 13, 2006 10:18 PM |
Hello Brian,
Has there been any updates on this issue? I'm also encounteringthe "ASP.NET session has expired"error inside of the ReportViewer control when my application is deployed to a load-balanced environment. My web.config sessionState settings are the default settings (as seen here.)
< sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>
Your timely response is appreciated as I'm supposed to rollout a production version soon and this bug is a show-stopper.
Thanks, Erik |
| erikc Friday, September 22, 2006 5:29 PM |
Setting AsyncRendering also causes IE7 to incorrectly render div tags. I'm getting unexpected results. |
| CorkChop Saturday, September 23, 2006 1:32 AM |
I'm having similar session state issues. Anyone find a fix? Local machine seems to work fine. I'm setup as sql server session state. If disable asyncrendering on the control it works on the server once I deploy. (this causes issueswith the images though) If I keep asyncenabled the asp.net session expired immediately upon trying to run the report. |
| Mlhoop Friday, September 29, 2006 3:47 PM |
I spent days troubleshooting this last week. Let me share what I learned.
1. The message "ASP.NET session has expired" means that the session dropped on the custom web site hosting your Report Viewer control. Usually that means that the app pool was recycled or IIS was reset or that someone deployed some new code or change the web.config file or something.
2. A different error message saying something like "execution 'la79sdfjnlkad9' does not exist" means that the session expired in ReportServer (which is stored in the ReportServerTempDB database on the DW server).
In regards to fixing #1, the conclusion I came to was that you need to change the app pool recyling settings in IIS on your custom web site which hosts the ReportViewer control: Turn off "Recycle worker processes (in minutes)". Turn off "Recycle worker processes (number of requests)". Turn on "recycle worker processes at the following times" and set it to recycle at 2am or thereabouts. Or you could go the route of saving the ASP.NET session to a database or something.
In regards to fixing #2, wehad to workaround a bug where the background keepalive code in the ReportViewer control wasn't working for us:
There was also another bug about keepalive not working correctly on drillthrough reports:
So we ended up writing our own keepalive code which calls the SSRS web service ourself. |
| furmangg Friday, September 29, 2006 4:16 PM |
Any ideas why turning on/off asyncrendering on the report viewer control stops the session state error? |
| Mlhoop Friday, September 29, 2006 4:21 PM |
In regards to using a SQL Server db to save the ASP.NET session info, I've tried it using only the core objects needed to hook up to a report server and retrieve and render a report. However, I did not have any luck with this either because each object implementing ViewState needs to be serializable, and serializing the low-levelNetworkCredentials object (needed to hook up to the report server) pukes. If anyone has had luck with this, please let me know!
FYI. We turned affinity on on our web servers and things work great - no hokey code changes at all. We have the luxury of doing this because we're not supporting thousands of users.
Here's my runtime code:
m_rptsvc = new ReportingService2005();
m_rptsvc.Credentials = new System.Net.NetworkCredential("foo", "bar");
m_viewer.ServerReport.ReportServerUrl = new Uri("http://myReportServer");
m_viewer.ProcessingMode = ProcessingMode.Remote;
m_viewer.ServerReport.ReportPath = "/A/B/C.rdl";
m_viewer.ServerReport.ReportServerCredentials =
new ReportServerCredentials(m_rptsvc.Credentials);
m_viewer.ServerReport.Refresh();
Here is my supporting ReportServerCredentials class:
[Serializable]
public class ReportServerCredentials : Microsoft.Reporting.WebForms.IReportServerCredentials
{
private System.Net.ICredentials m_credentials;
public ReportServerCredentials(System.Net.ICredentials credentials)
{
m_credentials = credentials;
}
// No-op method. Use NetworkCredentials
public bool GetFormsCredentials(
out System.Net.Cookie authCookie,
out string userName,
out string password,
out string authority)
{
authCookie = null;
userName = null;
password = null;
authority = null;
return false;
}
// No-op. Use NetworkCredentials
public System.Security.Principal.WindowsIdentity ImpersonationUser
{
get { return null; }
}
public System.Net.ICredentials NetworkCredentials
{
get { return m_credentials; }
}
} |
| erikc Friday, September 29, 2006 4:50 PM |
Change the identity on the app pool in IIS to be a domain user which has access to ReportServer. Not the greatest workaround, but it works. I think that domain user needs to be in the IIS_WPG group... not sure what other groups it needs to be in. |
| furmangg Friday, September 29, 2006 5:04 PM |
Changing the identity in the app pool works for the session issues? Can you provide details on how you did this? |
| Mlhoop Friday, September 29, 2006 8:27 PM |
see https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=213131for more details on changing the app pool identity and under what situations it helped |
| furmangg Friday, September 29, 2006 8:37 PM |
My situation is that im getting asp.net session expired unless i shut asyncrendering off, which if I do that it causes the graphics on the report viewer control for sorting to be the dreaded red x (missing graphic). I've been reading others using a frame instead of the reportviewer control. Thinking about trying this maybe. I have another problem in that an ISAPI filter for single sign on purposes is causing me to have to keep this directory inside of the parent directory for the whole site. I have a 1.1xx framework main site, and this project sits inside a subfolder and is configured as .net 2.0. Again im frustrated in that i can get things to run locally. Any help anyone can provide is appreciated of course:)
Thanks, Mike |
| Mlhoop Friday, September 29, 2006 8:38 PM |
In my situation I am using the reportviewer control in local processing mode. I too have experienced the 'asp session time-out error'. I found that adding the following to the page_load event fixed my symptoms:
Response.CacheControl = "no-cache" Response.Expires = -1
this forces the asp page to reload each time also forcing a reload of the reportviewer control.
|
| jrambo Friday, October 13, 2006 3:12 AM |
The Reportviewer was working properly during developement. but once i deployed my application into web server. I am getting alert with no message when ever i tried to see report.
I am using local mode.I added all the three ddls
Microsoft.Reportviewer.common.dll
Microsoft.ReportViewer.webforms.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll
but still reportviewer is not working.
Is it mandatory to add session state in web.config file. I my application i am not included session state. |
| Vijay Kumar Friday, October 13, 2006 4:15 PM |
Even i also have included ReportViewer1.LocalReport.Refresh() in my code. but once i deploy my appl it showing an alert without any message. |
| Vijay Kumar Friday, October 13, 2006 4:22 PM |
Does installing Visual Studio 2005 on web server solve this issue?
Thanks,
Tanmaya |
| Tanmaya Friday, November 10, 2006 1:05 PM |
I have spent the last 4 days working on this same issue and wanted to share what I have learned.
I have a user control that contains a reportviewer. I have recently upgraded VS to SP1. SP1 contains a newer version of the reportviewer.
I am using inProc for session state. Any time a report would run longer than about 40 minutes I would get the dreaded ASP session state error.
There are so many “States�to deal with that it gets confusing as to where to start. I have spent much of my time doing the shot gun approach. Hopefully you will not have to do that.
So here is how I would do it again:
1) Look at the “SessionAccessTimeout�on the Report Server. Each report has a unique ID that the Report Server uses to keep track. This information is stored in the ReportServerTempDB database. Look at the dbo.SessionData table. I made changes to this setting but it is very possible I did not need to. If you look at the Timeout column in the SessionData table you can see what your default is. If you look at the bottom of IE you can most likely see what session ID you are using. For more information on this setting and how to change it see: http://blogs.msdn.com/jgalla/ this is the only place I have seen this setting talked about. (The possible symptom of this is that the report would error out before it has run completely processed, but make changes here last.)
2) Next look at the session settings on the virtual directory that you are running the viewer from. In IIS right click on the virtual directory, go to the ASP.NET tab, click on “Edit Configuration�and then go to the “State Management�tab. Here is where the settings are for session state. This really just is a UI for making changes to the Web.config. I believe the default is 20 and is taken from the global settings for IIS. If you change this setting and anentry will be made in the Web.config under <system.web>. Some thing like <sessionState timeout=�20�/> if you set it to 120 minutes.
3) If you really do not want to change the session timeout for the whole website, you can change the settings on the control or page that the reportviewer is contained by. I have this as a variable that I can set per report (In my ascx control). The syntax is something like (VB) Me.Session.Timeout = “timeout in minutes� Each control on the page actually has access to page session state via the Session property. For more information on this go to: http://msdn2.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate(VS.80).aspx
4) How you set up your worker process recycling can greatly affect inProc session state. To see a great article on how IIS recycling affects inProc session state to: http://blogs.msdn.com/david.wang/archive/2005/09/19/Why_do_I_lose_ASP_Session_State_on_IIS6.aspx
I have changed settings on the ReportServer IIS but none of these settings are related (at least with my issue) to the session timeout.
There are also more issues you could run into if you are using the webfarm on IIS. I hope that some of you take less time on this than I did. Good luck! |
| Mark Boehlen Wednesday, January 31, 2007 9:57 PM |
Mark, you didn't mention if you had resolved the issue on your site. Do you still see the session timeout?
thanks,
michael |
| Michael R Thursday, February 01, 2007 12:32 AM |
Hello Michael,
YES!!!!!
By adjusting the timeout in the control I have solved the issue in my situation. I did this because I did not want to change the session time out for the whole site. (Default is 20 minutes). If the report was to take longer to run than the time out I have specified, it would still error out. |
| Mark Boehlen Thursday, February 01, 2007 9:22 PM |
OK, we ran into the "asp.net session timed out" error as well.
Reading this thread, I am pretty sure there are several different errors/problems occuring for various people. The one we are having is when the user first hits the site...basically initializing their session. So things like session time outs and the like do not really apply in this case. I have tried twiddling with the session settings on the site with no effect that I can discern. Simply closing the browser and hitting the site again causes the problem every time. Additional refreshes of the page will not show the error.
Our topology consists of 2 virtual directories on the same web site. One VD has a ReportViewer page and is fed information from the other virtual directory on the QueryString. In the example I am providing below, one virtual directory has a single file...a simple html web page with two IFRames in it. Each IFrame is pointed to a page in the other virtual directory that has a report viewer control on it. The other virtual directory only has a default.asx page in it and a sample report rdl file. The default.aspx page has a reportviewer controll on it and the page load event does nothing more than to feed it the report file name and a datatable object that is created in code...no database/sql required.
Here is a URL to the zipped up example:
http://www.ascmclarencoupe.com/misc/ReportViewerTest.zip
To reproduce this problem:
1. Unzip the zip file. 2. Copy the ReportViewerIFrame directory and the INNERMOST ReportViewerTest to the c:\inetpub\wwwroot directory. 3. In IIS, right click on each directory and click properties. 4. Click the "Create" button to create an application and virtual directory.
You now should have two virtual directories under your default web site. Point your browser to http://<servername>/ReportViewerIFrame/iframe.htm and see the asp.net session timeout error happen in only one of the iframes.
This example is about as simple as I could make it. I am hoping this post is complete enough and simple enough that maybe one of the Microsoft guys will notice it and run with it...please post back or email me if somebody in MS is looking at it....or tell me how dumb I am if this issue has been resolved or some other solution has been posted for this case.
My initial theory is that the browser is creating a race condition for one of the ReportViewers. When the browser goes to pull the pages that are to be loaded in the IFrames from the ReportViewerTest virtual directory, the first ReportViewer is intializing the session and the other ReportViewer thinks that the session has been started and valid...but it isn't yet.
Things I have noticed:
If you put everything under one virtual directory the problem seems to disappear (not an option for us...but may lead to a workaround). If you set the report viewer so that async=false, the problem goes away except for graphs which will get a big red x occasionaly. A single ReportViewer IFrame does not cause a problem. The event viewer will log an aspweb info message about a timed out session:
Source: ASP.NET 2.0.50727.0 Category: WebEvent EventID: 1309
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 3/16/2007 10:05:09 AM Event time (UTC): 3/16/2007 2:05:09 PM Event ID: 4f01c0a5135a430894b15106c3bed0a5 Event sequence: 32 Event occurrence: 3 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/Root/ReportViewerTest-3-128185263425257134 Trust level: Full Application Virtual Path: /ReportViewerTest Application Path: C:\Inetpub\wwwroot\ReportViewerTest\ Machine name: NEGUSM Process information: Process ID: 3700 Process name: aspnet_wp.exe Account name: NEGUSM\ASPNET Exception information: Exception type: AspNetSessionExpiredException Exception message: ASP.NET session has expired Request information: Request URL: http://negusm/ReportViewerTest/Reserved.ReportViewerWebControl.axd?Mode=true&ReportID=96538f19e3fe47f9b303655261c9b941&ControlID=89d6276403cd44b0bac604fa5f3602b6&Culture=1033&UICulture=1033&ReportStack=1&OpType=ReportArea&Controller=ClientControllerReportViewer1&PageNumber=1&ZoomMode=Percent&ZoomPct=100&ReloadDocMap=true&SearchStartPage=0&LinkTarget=_top Request path: /ReportViewerTest/Reserved.ReportViewerWebControl.axd User host address: 172.16.201.77 User: Is authenticated: False Authentication Type: Thread account name: NEGUSM\ASPNET Thread information: Thread ID: 9 Thread account name: NEGUSM\ASPNET Is impersonating: False Stack trace: at Microsoft.Reporting.WebForms.ReportDataOperation..ctor() at Microsoft.Reporting.WebForms.HttpHandler.GetHandler() at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Custom event details: For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. |
| negusm Friday, March 16, 2007 2:19 PM |
Hmmmm...not so much as a peep. Kind of a waste of effort on my part I guess.
We did figure out a workaround. We placed a hidden ReportViewer control on an aspx page that sets up a javascript timer to redirect to the actual report page after 1 millisecond. No "asp.net Expiration" errors or red "x"s....at least not yet.
-Mike |
| negusm Tuesday, March 27, 2007 3:42 PM |
I'm gettinga similarproblem:
We get this if anyone tries to do an Excel or PDF export. We are using local reports in asp.net. The export process takes several gig of memory and 85% cpu on a 4 cpu box and finally crashes. This naturally destroys all the session memory. So for us the sympton is session time out, but the cause is exports.
I noticed someone already wrote this, but is there a fix for it?
|
| Johnny606 Tuesday, April 03, 2007 3:36 PM |
I would very much like to know if there's been any progress on this bug.
Could someone from MSFT please give an update?
|
| Michael Tokar Thursday, April 12, 2007 8:17 AM |
Remove <httpCookies requireSSL='true' httpOnlyCookies='true'/>
from <system.web> if it's in there.
having it in <system.web> seems to cause this problem... at least when there is no SSL.
|
| sschlome Monday, April 16, 2007 12:33 AM |
| sschlome wrote: |
|
Remove <httpCookies requireSSL='true' httpOnlyCookies='true'/>
from <system.web> if it's in there.
having it in <system.web> seems to cause this problem... at least when there is no SSL.
| |
This has no affect for my situation.
|
| negusm Friday, May 18, 2007 3:52 PM |
After meaning weeks searching the message boards I finally broke down and called Microsoft Support cashing in one of my support tickets. To my delight, they actually fixed this issue for me. Like many of you, I was having the 'ASP.NET Session Expired' problem when displaying a page with the ReportViewer control inside of an iframe from another page.
Turns out, there is a known bug in IE6 and above regarding cookies and authentication. The following link
http://support.microsoft.com/default.aspx/kb/323752gave me instructions on resolving my issue. I used the P3P custom header approach and my app is now running smoothly.
This may not help all of you but maybe it does address some of you.
|
| AmosOtis Thursday, May 24, 2007 2:10 AM |
Thank you, thank you. Two days of headbanging round the internet and my problem is solved. Now to find out why report/printing requires cookies in Framework 2 whereas it didn't in 1.1. |
| David Beavan Wednesday, October 24, 2007 10:29 AM |
It worked for me by following the solution provided (Executable Permissions : Scripts and Executables in ISS6.)
https://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3071515&SiteID=17 |
| Vinod_Yadav1919 Wednesday, November 05, 2008 3:54 AM |
Hi,
We are getting the same error with the report viewer control inside a web part, however, the situation is a little different:
1. This error appears around once in 100 times. 2. It appears immediately on the load of the page(reports). 3. Most of the times, this error appears when multiple pages are loading reports simultaneously. 4. We checked that the "scripts and executables" options is set correctly in iis. 5. The session timeout is set to 60 minutes and the when it works fine, the reports timeout only after 60 minutes. 6. We tried setting asynchronous rendering to false and were unable to replicate the error, however, this is unacceptable to our clients because the page load time increases dramatically.
We would really appreciate any suggestions on how we can resolve this error.
Thanks in advance, Manu
|
| Manu Kanwarpal Monday, November 17, 2008 3:58 PM |
Hi All, Problem resolved!!! Whenever, I clicked on the nextPage button on the report viewer, I would get an error "ASP.net session has expired".
Server Error in '/' Application.
ASP.NET session has expired
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
The problem was an image in the Report. When I took the report to production, I forgot to take the image that was embed in the report. When I uploaded the image to the production server, the report was now able to find the image and everything seemed to work fine. Hope this helps. Abhishek - Edited byAbhishek Balne Wednesday, July 22, 2009 9:11 PM
-
|
| Abhishek Balne Wednesday, July 22, 2009 9:08 PM |
ok i hade the same problem and it is been solved by using this property
AsyncRendering to False and it works fine
|
| avrail Vivo Monday, August 03, 2009 10:00 AM |
Mlhoop -- did you solve your problem? I had the same problem - asp.net issue, fixed with asyncrendering off, but I now get a red x instead of the report. My report is rendered within an iframe. |
| Sakendrick Tuesday, August 11, 2009 3:27 AM |
I hate to piggy back an issue that has been around for a while but looks like this is still an active issue since the last posting was done in August. And I'm encountering similar issues. The report will render locally but when I deploy to a web server, I get no output and the page eventually times out. I have tried a few of the suggestions listed here but no luck in resolving the problem. Please let me know if I need to supply more information.
Development environment XP sp2, VS2005, C# Deployed on Windows2000 2.0 framework Attempted to render report while logged into the web server (IE 6.0) Attempted to render report from development machine hitting intranet based URL (local IE is 8.0).
I'm feeding the report my own datasource since it's coming from DB2 instead of SQL Server. Here is my code snippet:
aspx portion:
<rsweb:ReportViewer ID="ReportViewer1" runat="server" BorderWidth="5px" <br /> Width="100%" Height="100%" Font-Names="Verdana" Font-Size="8pt" <br /> Visible="false" AsyncRendering="false">
<LocalReport ReportPath="Reports\RptAudit.rdlc"></LocalReport>
</rsweb:ReportViewer>
C# code behind:
this.ReportViewer1.Visible = true;
//render report
ReportViewer1.ProcessingMode = ProcessingMode.Local;
this.ReportViewer1.LocalReport.SetParameters(paramList);
this.ReportViewer1.LocalReport.DataSources.Clear();
ReportDataSource reportData = new ReportDataSource("DataSet2_AUDIT_LOG", m_DS.Tables[0]);
this.ReportViewer1.LocalReport.DataSources.Add(reportData);
this.ReportViewer1.LocalReport.Refresh();
The data in my dev environiment is the same data that works on this dev web server. I have converted from Crystal Repors 9.1 to use the ReportViewer control so I can remove a 3rd party dependency. The report had worked in CR9.1 before removing from this deployment instance.
Any help is greatly appreciated.
Regards,
Mike
- Edited byMichaelDenny Tuesday, October 13, 2009 5:23 PMneeded a bit more code
-
|
| MichaelDenny Tuesday, October 13, 2009 5:20 PM |