2012-12-29 87 views
-1

当我使用使用SSRS报告的桌面应用程序的远程桌面执行模式时,如果用户尚未登录到服务器,则此错误会出现在运行reoprt的应用程序中:远程桌面执行桌面.NET应用程序中的报告

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() +722
Microsoft.Reporting.WebForms.HttpHandler.GetHandler(String operationType) +687
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +57 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

如果用户通过“远程桌面连接”登录服务器,则该用户的错误消失。

任何人都有任何想法为什么会引发此错误?

回答

0

我通过更改我的webapp的IIS设置来解决问题。如果遇到此类问题,则需要转到服务器上的IIS设置(管理工具)。然后在“默认网站”下右键点击您的网站。单击属性并转到ASP.net选项卡。之后,点击“更改配置...”按钮。出现一个表单,其中有一个名为“认证”的选项卡。点击它并将“身份验证模式”更改为“无”。这将在Windows身份验证模式下解决RDP中的访问阻止问题。

Regards