Cache file error not fixed with config entry

4 posts, 0 answers
  1. Scott Buchanan
    Scott Buchanan avatar
    38 posts
    Member since:
    Dec 2008

    Posted 11 Aug Link to this post

    I am using Telerik.Reporting in an ASP.NET MVC5 app.  We have recently upgraded to version 10.1.16.615.  When we deployed to QA, all reports fail with this message:

    Error registering the viewer with the service.
    An error has occurred.
    Access to the path 'C:\Windows\TEMP\MvcApp\10.1.16.615\Cs\A\value.dat' is denied.

    I have read several threads on this message, and tried deleting the file and then revising web.config

    1. Deleting the file - no joy, next report run creates the file and throws same error.  I ma the only user on the system at this time.

    2. Specifying a cache provider.  web.config contains:

    under <configuration><configSections>

    <section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=10.1.16.615, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere" />

    under <configuration>

    <Telerik.Reporting>
        <Cache provider="Memory" />
        <Extensions>
            <Render>
                <Extension name="IMAGE" visible="false" />
                <Extension name="MHTML" visible="false" />
                <Extension name="RTF" visible="false" />
                <Extension name="XPS" visible="false" />
            </Render>
        </Extensions>
    </Telerik.Reporting>

    The Extension element already existed - just showing the complete set.

    Same error, not only restarted site but rebooted machine.

    Ideas?

     

     

  2. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 15 Aug Link to this post

    Hi Scott,

    the error message indicates that the Reporting REST service uses a FileStorage as Storage setting, and the application does not have read/write access for the default cache folder - REST Service Storage.

    In case you are deploying in a web farm, please consider switching to an MsSqlServerStorage.


    Let us know if you have any further questions.

    Regards,
    Stef
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Scott Buchanan
    Scott Buchanan avatar
    38 posts
    Member since:
    Dec 2008

    Posted 15 Aug in reply to Stef Link to this post

    Is this new?  this app has been working for 2 years until the latest version of Telerik.Reporting.  

    Why is the app ignoring the memory setting in web.config - is that no longer supported?

    Scott

  5. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 15 Aug Link to this post

    Hello Scott,

    The cache setting from your code snippet is applicable for the old ASP.NET WebForms ReportViewer, that is obsolete as of Q3 2015 - old viewers cache management. The error message is related to the cache settings of the Reporting REST service, that operates with the HTML5 Viewer. The Reporting REST service's cache settings can be applied in code or through the configuration file (example).
    More details about the Reporting REST service are available in How To: Implement the ReportsController in an application.

    Regards,
    Stef
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top