在这种情况下,有时会出现“访问被拒绝"的情况.到'C:\ WINDOWS \ TEMP \'文件 [英] Occasional "Access denied" to 'C:\WINDOWS\TEMP\' files

查看:738
本文介绍了在这种情况下,有时会出现“访问被拒绝"的情况.到'C:\ WINDOWS \ TEMP \'文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的ASP.NET MVC应用程序中,当我尝试从Microsoft Reporting Services程序集打开或生成LocalReport时,有时会出现以下错误:

In my ASP.NET MVC application I sometimes get these errors when I try to open or generate LocalReport from Microsoft Reporting Services assembly:

Microsoft.Reporting.WebForms.LocalProcessingException: 本地报告期间发生错误 加工. ---> Microsoft.Reporting.DefinitionInvalidException: 报告的定义 'C:\ Inetpub \ wwwroot \ orders \ Reports \ Reports \ Pending Renewals.rdlc'无效. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: 报告中发生意外错误 加工. ---> System.UnauthorizedAccessException: 进入路径

Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report processing. ---> Microsoft.Reporting.DefinitionInvalidException: The definition of the report 'C:\Inetpub\wwwroot\orders\Reports\Reports\Pending Renewals.rdlc' is invalid. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.UnauthorizedAccessException: Access to the path 'C:\WINDOWS\TEMP\expression_host_b5ec9f67a3ab42cfb53a75588aed6f75.dll' is denied.

System.Web.HttpUnhandledException: 类型异常 'System.Web.HttpUnhandledException' 被扔了. ---> Microsoft.Reporting.WebForms.LocalProcessingException: 本地报告期间发生错误 加工. ---> Microsoft.Reporting.DefinitionInvalidException: 报告主要"的定义 报告"无效. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: 报告中发生意外错误 加工. ---> System.UnauthorizedAccessException: 进入路径

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report processing. ---> Microsoft.Reporting.DefinitionInvalidException: The definition of the report 'Main Report' is invalid. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.UnauthorizedAccessException: Access to the path 'C:\WINDOWS\TEMP\expression_host_a1670a6e6b96411790645cb12e50897d.dll' is denied.

可能是什么原因?在大多数情况下,它都有效,因此这不是安全问题.我该如何解决?

What can be the reason? Most of the time it works so it's not security issue. How do I fix it?

这是找到的内容,但我不想使用使用字段而不是报表参数"解决方案.

Here's what I've found but I'd not like to use "use fields instead of report parameters" solution.

推荐答案

我也遇到了同样的问题.但是,当我通过以管理员身份运行"选项启动Visual Studio时,该问题不再出现.

I have also faced the same problem. But, when i start my visual studio by "Run As Administrator" Option, the problem wasn't arise anymore.

希望,这可以为您提供帮助

Hope, this can help you

这篇关于在这种情况下,有时会出现“访问被拒绝"的情况.到'C:\ WINDOWS \ TEMP \'文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆