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

PictureBox and large image error

8 Answers 317 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simone
Top achievements
Rank 1
Simone asked on 01 Jul 2013, 06:46 PM
Hi

I have this error on a Report with a PictureBox and large images (> 2MB) :

An error has occurred while processing PictureBox 'Foto1': Unable to create the store directory. (Exception from HRESULT: 0x80131468) 

The error appears only on the hosted site and not on my PC.

Target Framework: 3.5
Reporting version: Q3 2012 -  6.2.13.110

Attached the screenshot of the error.

Thanks in advance
Simone

8 Answers, 1 is accepted

Sort by
0
Simone
Top achievements
Rank 1
answered on 03 Jul 2013, 10:06 PM
Hi

I am trying to use reportProcessor instead that ReportViewer, saving directly in PDF... but same error :((

...
...
Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor()
Dim result As RenderingResult = ReportProcessor.RenderReport("PDF", instanceReportSource, Nothing)
 
Response.Clear()
Response.ContentType = result.MimeType
Response.Cache.SetCacheability(HttpCacheability.Private)
Response.Expires = -1
Response.Buffer = True
 
Response.AddHeader("Content-Disposition", "attachment; filename=" & dr("IdImmobile") & ".PDF")
Response.ContentType = "application/octet-stream"
Context.Response.BinaryWrite(result.DocumentBytes)
Context.Response.End()

The problem is always the file size....
Any idea ??

Thanks
Simone

0
Chavdar
Telerik team
answered on 04 Jul 2013, 12:17 PM
Hello,

It seems that the Reporting engine cannot create a folder in the Isolated Storage in order to temporary store the image while it is being processed. This might be caused by insufficient privileges for the process to read and write in the Window's Temp folder for the process and in the Isolated Storage.

To solve the problem you have to either grant permissions for the application to access these locations or configure the Telerik Reporting Cache to use only Memory cache or File cache with an explicitly specified path which has the corresponding read/write permissions. You can check how to configure the cache from the Cache Management section in the documentation.

Regards,
Chavdar
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Simone
Top achievements
Rank 1
answered on 04 Jul 2013, 01:23 PM
Hi Chavdar 

I also tried with this configuration before write this post:

<Telerik.Reporting>
    <Cache provider="File">
      <Providers>
        <Provider name="File">
          <Parameters>
            <Parameter name="BasePath" value="D:\Inetpub\webs\gestionehouseimmobiliareinfo\Public\Temp" />
          </Parameters>
        </Provider>
      </Providers>
    </Cache>
  </Telerik.Reporting

but same error... :(

I looked via ftp to the temp folder during report rendering and I can confirm you that tmp files are created there

Same situation with Cache provider="Memory"

Attached a screenshot of filezilla, so you can view  the content of the temp folder

Thanks
Simone
0
Chavdar
Telerik team
answered on 05 Jul 2013, 07:22 AM
Hello,

You have to upgrade to the latest version of Telerik Reporting (v7.1.13.612) in order the configuration setting to be used by the processing engine as well. Give it a try and let us know whether it solves the issue.

Regards,
Chavdar
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Simone
Top achievements
Rank 1
answered on 05 Jul 2013, 10:03 AM
Hi

v7.1.13.612 needs NET Framework 4.0 and in this moment I can't upgrade the entire project from 3.5 to 4 (due provider limitation also)...

So I'll convert this report with Crystal Report... :((

I'm going to do some test with trial version of Telerik Reporting during next days, and I'll tell you the result

Thanks
Simone
0
Simone
Top achievements
Rank 1
answered on 06 Jul 2013, 10:57 AM
Hi there

First attempt with v.7.0.13.220 (NET 3.5), but same error...

Simone
0
Simone
Top achievements
Rank 1
answered on 08 Jul 2013, 06:05 PM
Application recompiled with Net 4.0 and telerik rerporting 7.1.13.612 (trial version)

Now I have this error:

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31
   System.Security.CodeAccessPermission.Demand() +46
   System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +99


Thanks
Simone
0
Accepted
Chavdar
Telerik team
answered on 11 Jul 2013, 11:09 AM
Hi,

Most probably your application is running in Medium trust if you are receiving this error. In Medium trust configuring the Telerik Reporting section is not possible due to security restrictions.

If this is the case, there is no way to change the Reporting Cache provider and the only option is to grant permissions for the application to access either the Window's temp folder or the IsolatedStorage. You can also consider to run the application in Full trust as some of the product's features are not available in Medium trust. For more information, please check the Medium Trust Support help article.

Regards,
Chavdar
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
Simone
Top achievements
Rank 1
Answers by
Simone
Top achievements
Rank 1
Chavdar
Telerik team
Share this question
or