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

value.dat access denied

1 Answer 674 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 09 Sep 2019, 04:22 PM

On our test server if we set Storage to default location which is in C:\Windows\TEMP folder we get unauthorized access exception, would setting Storage to "C:/Temp" cause any security issues, or are there better standard locations for storing temp files?

Telerik.Reporting.Services.ReportServiceConfiguration ReportConfiguration = new Telerik.Reporting.Services.ReportServiceConfiguration
    {
        ReportResolver = new ReportFileResolver(HttpContext.Current.Server.MapPath("~/MyReports"))
                .AddFallbackResolver(new ReportTypeResolver()),
        Storage = new Telerik.Reporting.Cache.File.FileStorage()
    };

 

1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 12 Sep 2019, 08:04 AM

Hi Anton,

The recommended location used by the storage is the default windows temp folder and you would have to make sure that the IIS process has read/write access for this folder. To give access to the folder go to Properties - Sharing|Security options or change the used application pool's Identity through IIS Manager.

Still, you can change the default folder using the second overload of the FileStorage and passing any custom folder location that the IIS process has access to.

For more information, check Error registering the viewer with the service. Access to the path X is denied.

Best Regards,
Silviya
Progress Telerik

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
Anton
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Share this question
or