WebViewer AcrobatReader issue Upgrading from 12 to 14

Posted by: stacey.manske on 30 July 2020, 2:21 am EST

    • Post Options:
    • Link

    Posted 30 July 2020, 2:21 am EST

    When running my web project locally with IIS Express the AcrobatReader and HTML type both work for the WebViewer. On our test server, with IIS 8, the HTML type works but not AcrobatReader. I get a 500 - Internal server error.

    The handlers are mapped in the web.config like this:

     <add verb="*" path="*.Web" type="GrapeCity.ActiveReports.Web.Handlers.WebCacheAccessHandler, GrapeCity.ActiveReports.Web, Version=14.1.2351.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR14_WebCacheAccessHandler" resourceType="Unspecified" preCondition="integratedMode,runtimeVersionv4.0,bitness64" />
            <add verb="*" path="*.rpx" type="GrapeCity.ActiveReports.Web.Handlers.RpxHandler, GrapeCity.ActiveReports.Web, Version=14.1.2351.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR14_RpxHandler" resourceType="Unspecified" preCondition="integratedMode,runtimeVersionv4.0,bitness64" />
            <add verb="*" path="*.rdl,*.rdlx" type="GrapeCity.ActiveReports.Web.Handlers.RdlxHandler, GrapeCity.ActiveReports.Web, Version=14.1.2351.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR14_RdlxHandler" resourceType="Unspecified" preCondition="integratedMode,runtimeVersionv4.0,bitness64" />
    

    I can see them in the Handler Mappings in IIS on the server. Am I missing any handlers?

  • Posted 30 July 2020, 5:34 pm EST

    Hello,

    Can you ty after deleting the mapping? In my understanding, there is no need of mapping handlers in AR14.

    Also, I am not able to replicate the issue at my end. Please refer to the attached sample.

    Could you please either modify the attached application or provide your own stripped-down project so that we can try reproduce the same behavior at our end and assist you further accordingly.

    Thanks,

    Mohit

    file-09c7913d-7292-4714-8d69-d356e5a71744.zip

  • Posted 31 July 2020, 7:54 am EST

    Thank you for the sample. I switched to IIS on my pc, removed the handlers and it’s working locally for me but still not on the server. I will try to put together a sample but it’s a very large project so I’m not sure I’ll be able to pick out some pieces and re-create the same scenario.

    To add to what I’m seeing on the server:

    Webviewer set to HTML type is working

    Webviewer set to AcrobatReader type returns a 500 - internal server error.

    Exporting reports to Excel works.

    Exporting reports to PDF fail with this error message:

    Error Message: The directory name is invalid.

    Source: mscorlib

    Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

    at System.IO.Path.InternalGetTempFileName(Boolean checkHost)

    at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, Stream stream, String pageRange)

    at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, String filePath, String pageRange)

  • Posted 3 August 2020, 7:11 pm EST

    Hello,

    Could you please try after setting the “LoadUserProfile” of Application pool setting to “True” in IIS Manager.

    Thanks,

    Mohit

  • Posted 4 August 2020, 5:48 am EST

    We already have the “LoadUserProfile” of the Application pool set to true in IIS.

    We are using identity impersonation so is it looking for the user profile of the impersonation account?

  • Posted 4 August 2020, 7:13 pm EST

    Hello,

    This error mostly occurs when users have insufficient permission. Could you please try with Admin user so that we can make sure that the issue does not cause by insufficient permission.

    Thanks,

    Mohit

  • Posted 5 August 2020, 11:21 pm EST

    That was it. The impersonation user did not have all the permissions needed. Specifically, it needed permissions to the user profile folder of the application pool.

    Thanks!

Need extra support?

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

Learn More

Forum Channels