Reportviewer-error: ASP. NET session has expired

Source: Internet
Author: User

It has been quite good to use reportviewer for a while. Today, I published the site and tested it. The error page is displayed.

Baidu and Google are already on the go. There are probably the following solutions:

1. Add the following nodes to Web. config:

<Sessionstate mode = "inproc" cookieless = "true"> </sessionstate>

In this case, the value passing parameter is displayed in the URL.

2. Set asyncrendering of reportviewer to false.

However, when the automatic paging function of reportviewer is used in this method, the session process still occurs when the page jumps to the next page.

So I began to search. Finally, we got a satisfactory result:

It turns out that my host name contains "_". You only need to change it to an IP address or an underscore-free name.

Http://social.msdn.microsoft.com/forums/en-US/vsreportcontrols/thread/ca916bff-e996-41a2-b547-16542a298c39/

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.