This is a migrated thread and some comments may be shown as answers.

Cache file error not fixed with config entry

3 Answers 219 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott Buchanan
Top achievements
Rank 1
Scott Buchanan asked on 11 Aug 2016, 09:10 PM

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?

 

 

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 15 Aug 2016, 10:10 AM
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
0
Scott Buchanan
Top achievements
Rank 1
answered on 15 Aug 2016, 12:18 PM

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

0
Stef
Telerik team
answered on 15 Aug 2016, 01:11 PM
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
Tags
General Discussions
Asked by
Scott Buchanan
Top achievements
Rank 1
Answers by
Stef
Telerik team
Scott Buchanan
Top achievements
Rank 1
Share this question
or