ReportViewer 2010, IO.Exception\

I have an issue which I have concluded it is machine specific based, however I would like to know, how can solve it in case it comes up in another machine.

I have developed I WPF project (.NET 4) , which I install using Installshield LE . prerequisites for the program is also ReportViewer 2010, which I install prior (if needed).

I have made installations of the program to following machines:

  • Windows 7 64-bit SP1
  • Windows 7 32-bit
  • Windows XP SP3 (case 1)
  • Windows XP SP3 (case 2)
  • Windows XP SP3 (case 3)
  • In all the above machines my reports run just fine, except #5 (case 3), where I get the following error:

     Microsoft.Reporting.WinForms.LocalProcessingException: An error occurred during local report processing. ---> 
        Microsoft.Reporting.DefinitionInvalidException: The definition of the report '' is invalid. ---> 
        Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> 
        System.IO.IOException: The process cannot access the file 'C:Documents and Settings<WindowsLogOnName>Local SettingsTempexpression_host_2e380b8068bb4ef5a53225faab4ebcb4.dll' because it is being used by another process.
    

    All the machines hit the same Data Base and the report I am testing is the same in every case.

    Does anybody faced this error before and has any clue??


    I have heard of malware and antivirus programs blocking access to the localreport temp files since the expressions within the report are basically VBScript. Try disabling these and trying again. Here is the only source I have found on this.

    Otherwise, a few things to try:

  • Check file permissions on both the RDLC and the temp files. The NETWORK SERVICES as well as the ASP.NET user account needs access to these. Make sure it has FULL CONTROL as it needs Execute permissions as well as read and write.
  • Check disk space
  • Try using a process monitor, such as Process Explorer, to see if any other programs are holding onto the file handle.
  • Try deleting the temp file and relaunching or recycling the app pool.
  • Maybe scour your event viewer to maybe find more info about the issue?
  • If none of this works, you may be better off reporting the issue to MS directly.

    链接地址: http://www.djcxy.com/p/26330.html

    上一篇: mysql循环与变量递增

    下一篇: ReportViewer 2010,IO.Exception \