Edit this page

Error registering the viewer with the service. Access to the path X is denied.

Environment

Product ProgressĀ® TelerikĀ® Reporting
Viewers All

Error Message

Error registering the viewer with the service.

An error has occurred.

Access to the path 'C:\Windows\TEMP\NAME\VERSION\LCT\value.dat' is denied.

Where NAME is the name of the application and VERSION is the currently installed on the machine version of the product

Cause\Possible Cause(s)

The error message "Access to the path X is denied" indicates that the Telerik Reporting REST service cannot access the configured file storage. By default, user temp folder will be used as a storage which is 'C:\Windows\TEMP' in this case.

Solution

Test changing the default folder using the second overload of the FileStorage and passing the custom folder location. The changes need to be made in ReportsController.cs file where the settings of the Reporting REST service are defined.

Example of ReporsController which connects the REST Service and HTML5 Report Viewer:

  public class ReportsController : ReportsControllerBase
    {
        static ReportServiceConfiguration configurationInstance;

        static ReportsController()
        {
            var appPath = HttpContext.Current.Server.MapPath("~/");
            var reportsPath = Path.Combine(appPath, "Reports");

            var resolver = new ReportFileResolver(reportsPath)
                .AddFallbackResolver(new ReportTypeResolver());

        //Setup the ReportServiceConfiguration
            configurationInstance = new ReportServiceConfiguration
            {
                HostAppId = "Html5App",
                Storage = new FileStorage("C:\MyFolder"),
                ReportResolver = resolver,
            };
        }

        public ReportsController()
        {
            this.ReportServiceConfiguration = configurationInstance;
        }
    }

Make sure that the IIS process has read/write access for the folder used by the storage. To give access to the folder go to Properties - Sharing|Security options or change the used application pool's Identity through IIS Manager.

In case of different instances of the application running, set a unique HostAppId for each instance of the Reporting REST Service. Another approach is using MsSqlStorage or Redis, which are suitable for multiple instance environment. The settings must be added in the ReportsController.cs. The appropriate cache storage options should be considered depending on the hosting environment. Please check the available options in REST Service Storage.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy