代码之家  ›  专栏  ›  技术社区  ›  queen3

偶尔访问“C:\Windows \TEMP\\”文件

  •  4
  • queen3  · 技术社区  · 14 年前

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

    Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report 处理。---gt; Microsoft.Reporting.DefinitionInvalidException: The definition of the report c:\eNETPU\www.根目录\报告\报告\待定 Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report 处理。---gt; System.UnauthorizedAccessException: Access to the path 'C:\WINDOWS\TEMP\expression_host_b5ec9f67a3ab42cfb53a75588aed6f75.dll' is denied.

    System.Web.HttpUnhandledException: 类型例外 被扔了。---gt; Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report 处理。---gt; Microsoft.Reporting.DefinitionInvalidException: The definition of the report 'Main Report' is invalid. ---gt; Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report 处理。---gt; 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?

    这里是 what I've found but I'd not like to use "use fields instead of report parameters" solution.

    1 回复  |  直到 11 年前
        1
  •  2
  •   Hasib Tarafder    11 年前

    我也面临同样的问题。但是,当我使用“以管理员身份运行”选项启动我的Visual Studio时,问题不再出现。

    enter image description here

    Hope, this can help you

    un As Administrator" Option, the problem wasn't arise anymore.

    enter image description here

    Hope, this can help you