Access Denied on sub new

Posted by: matt.cuda on 2 August 2018, 2:43 pm EST

    • Post Options:
    • Link

    Posted 2 August 2018, 2:43 pm EST

    We recently upgraded to AR 11.1. Everything worked well for a few days and then suddenly I get an Access Denied error message when newing up the report.



    System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" & vbCrLf & " at GrapeCity.ActiveReports.SectionReport…ctor()" & vbCrLf & " at UCSUnitManifest.arUnitManifest…ctor()" & vbCrLf & " at UCSUnitManifest.clsUnitManifest.PrintUnitManifest()"

    It dies on this line. Doesn’t even get to the initalize method…

    rpt = New arUnitManifest()
    

    I checked the license files and they have these entries which look correct…

    GrapeCity.ActiveReports.SectionReport, GrapeCity.ActiveReports.v11, Version=11.1.9726.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff

    GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport, GrapeCity.ActiveReports.Export.Pdf.v11, Version=11.1.9726.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff

    GrapeCity.ActiveReports.Viewer.Win.Viewer, GrapeCity.ActiveReports.Viewer.Win.v11, Version=11.1.9726.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff

  • Posted 2 August 2018, 2:53 pm EST

    Note this appears to only happen during debugging while in Visual Studio 2017. If I take the bin folder and put it on the desktop and run the program from there, the report runs.

  • Posted 3 August 2018, 2:45 am EST

    Hello,

    This seems to be permission related problem. Could you please check after starting the visual studio with admin privileges(Run as Administrator).

    If the issue still occurs, then could you please check with newly created AR application.

    Thanks,

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels