We have an issue with one of our production systems, where we do not have a great deal of storage space on the primary drive of the server (Primary being C:\, where Windows lives). This causes issues, because we have functionality in place that can generate reports that are actually larger than we have disk space available. In an effort to fight this (without upgrading these servers), I was wondering if there was a way to tell Telerik Reporting use a different folder when it's creating the report? Alternatively, if we knew the size of the report, we could check to ensure that amount of space was available, but, I don't think we can determine the size of a file that hasn't yet been created, the best we could do would be a guestimate based off the amount of data.
Anyone else have an issue similar to this?
Any suggestions would be great!
Thanks,
Travis
8 Answers, 1 is accepted
You can change the cache provider path for storing temporary files as elaborated in the Cache Management help articles. Our suggestion is to review the help articles on the topic to select the best configuration for your environment.
All the best,Peter
the Telerik team
HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
Thank you for your reply. We did look into adjusting the Cache provider, and pointing it at a different location (the D:\ drive), but I wasn't clear on whether or not this would achieve the result I was looking for. I could very well be incorrect about the process, but, wouldn't specifying the cache provider result in the file still be generated on the C:\ drive, but will be cached and stored on the D:\ once the file is generated?
If not, then we;ll move forward with this solution.
Thanks,
Travis
The files are generate and cached on the specified BasePath. You can proceed with the suggested solution.
Greetings,Peter
the Telerik team
HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
What version of the .NET framework do we require our application to run on in order to make use of File Caching in this way, is it 3.5?
I am working with Travis on this issue. When I add the Cache tag to the web.config, all of my reports stop working and I get the following:
Unrecognized element 'Cache'. (C:InetpubwwwrootDevelopmentProjectApplicationweb.config line 48)
at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Web.HttpContext.GetSection(String sectionName)
at System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName)
at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at Telerik.Reporting.Processing.Config.ReportingConfiguration.get_Current()
at Telerik.Reporting.Processing.AssemblyRefManager.LoadAssembliesCore()
at Telerik.Reporting.Processing.AssemblyRefManager.LoadAssemblies()
at Telerik.Reporting.Processing.ReportExpressionContext..ctor(IDynamicObject parent, Type reportType)
at Telerik.Reporting.Processing.ParametersManager`1..ctor(IReportDocument definition)
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at Telerik.ReportViewer.WebForms.ReportParametersOperation.PerformOperationOverride()
Here is how it is in the web.config:
<
Telerik.Reporting
>
<
Cache
provider
=
"File"
>
<
Providers
>
<
Provider
name
=
"File"
>
<
Parameters
>
<
Parameter
name
=
"BasePath"
value
=
"E:\HF_RadTemp"
/>
</
Parameters
>
</
Provider
>
</
Providers
>
</
Cache
>
<
Extensions
>
<
Render
>
<
Extension
name
=
"PPTX"
visible
=
"false"
>
</
Extension
>
<
Extension
name
=
"IMAGE"
visible
=
"false"
>
</
Extension
>
</
Render
>
</
Extensions
>
</
Telerik.Reporting
>
You're using an older version of Telerik Reporting where the caching did not exist. Please upgrade to the latest Q3 2012 SP1 release and let us know if further help is needed.
All the best,
Steve
the Telerik team
HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
Would someone at Telerik please divulge the default path for this Reporting file caching?
I understand how to set the path, but if we don't explicitly set it we need to know where's it's being created.
You guys rock!
Thanks in advance,
Jeff
We use the temporary folder provided by System.IO.GetTempPath. By default this is C:\Temp but may differ according the environment.
Regards,Peter
Telerik
Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.