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

PDF not showing as export option in Web Report Viewer

4 Answers 139 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 06 Jan 2011, 09:24 PM
It shows on our dev server but not when hosted at a Rackspace Cloud Site. We do see CSV, TIFF, RTF and Web Archive as options. Are there Adobe components needed on the server? Our dev server has Adobe Acrobat installed. I see in the documentaton an entry "Configuring Telerik Reporting Config Section". Our dev server does not have <Render> entries in the web.config and PDF does appear as an option. I don't see in the documentation under what conditions you would need <Render> entries in the web.config. Any help would be appreciated.

Thanks,
Marc Borgo

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 07 Jan 2011, 05:59 PM
Hello Marc,

Your web application is most likely running in Medium Trust, and as described in the referenced article, those formats would be automatically disabled, because they do not work under medium trust.

Best wishes,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Marc
Top achievements
Rank 1
answered on 20 Jun 2011, 09:14 PM
Our hosting provider is running in a "Modified Medium Trust" setup. They provided the config file which has exceptions to regular Medium Trust. Below is this file. Could you provide exactly what is causing the PDF conversion to require Medium Trust? We might be able to get them to make an exception for the needed module.

If we cannot get this to work I was thinking of exporting to TIF and then creating a PDF file myself.

Thanks for any help,
Marc

---------------------------------------------- config file -------------------------------------------------------------------------------------------

<configuration>

      <mscorlib>

            <security>

                  <policy>

                        <PolicyLevel version="1">

                              <SecurityClasses>

                                    <SecurityClass Name="AllMembershipCondition" Description="System.Security.Policy.AllMembershipCondition, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="AspNetHostingPermission" Description="System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="ConfigurationPermission" Description="System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

                                    <SecurityClass Name="DnsPermission" Description="System.Net.DnsPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="EnvironmentPermission" Description="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="FileIOPermission" Description="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="FirstMatchCodeGroup" Description="System.Security.Policy.FirstMatchCodeGroup, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="IsolatedStorageFilePermission" Description="System.Security.Permissions.IsolatedStorageFilePermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="NamedPermissionSet" Description="System.Security.NamedPermissionSet"/>

                                    <SecurityClass Name="PrintingPermission" Description="System.Drawing.Printing.PrintingPermission, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

                                    <SecurityClass Name="SecurityPermission" Description="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="SmtpPermission" Description="System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="SqlClientPermission" Description="System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="StrongNameMembershipCondition" Description="System.Security.Policy.StrongNameMembershipCondition, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="UIPermission" Description="System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="UnionCodeGroup" Description="System.Security.Policy.UnionCodeGroup, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="UrlMembershipCondition" Description="System.Security.Policy.UrlMembershipCondition, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="WebPermission" Description="System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="ZoneMembershipCondition" Description="System.Security.Policy.ZoneMembershipCondition, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="ReflectionPermission" Description="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="OleDbPermission" Description="System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                                    <SecurityClass Name="OdbcPermission" Description="System.Data.Odbc.OdbcPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                        <SecurityClass Name="SocketPermission" Description="System.Net.SocketPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

                              </SecurityClasses>

                              <NamedPermissionSets>

                                    <PermissionSet class="NamedPermissionSet" version="1" Unrestricted="true" Name="FullTrust" Description="Allows full access to all resources"/>

                                    <PermissionSet class="NamedPermissionSet" version="1" Name="Nothing" Description="Denies all resources, including the right to execute"/>

                                    <PermissionSet class="NamedPermissionSet" version="1" Name="ASP.Net">

                                          <IPermission class="AspNetHostingPermission" version="1" Level="Medium"/>

                                          <IPermission class="ConfigurationPermission" version="1" Unrestricted="true"/>

                                          <IPermission class="DnsPermission" version="1" Unrestricted="true"/>

                                          <IPermission class="EnvironmentPermission" version="1" Read="TEMP;TMP;USERNAME;OS;COMPUTERNAME"/>

                                          <IPermission class="FileIOPermission" version="1" Read="$AppDir$" Write="$AppDir$" Append="$AppDir$" PathDiscovery="$AppDir$"/>

                                          <IPermission class="IsolatedStorageFilePermission" version="1" Allowed="AssemblyIsolationByUser" UserQuota="9223372036854775807"/>

                                          <!-- <IPermission class="PrintingPermission" version="1" Level="DefaultPrinting"/> -->

                                          <IPermission class="SecurityPermission" version="1" Flags="Assertion, Execution, ControlThread, ControlPrincipal, RemotingConfiguration"/>

                                          <IPermission class="SmtpPermission" version="1" Access="ConnectToUnrestrictedPort"/>

                                          <IPermission class="SqlClientPermission" version="1" Unrestricted="true"/>

                                          <IPermission class="WebPermission" version="1" Unrestricted="true"/>

                                          <IPermission class="OleDbPermission" version="1" Unrestricted="true"/>

                                          <IPermission class="OdbcPermission" version="1" Unrestricted="true"/>

                            <IPermission class="SocketPermission" version="1" Unrestricted="true" />

                                          <IPermission class="ReflectionPermission" version="1" Unrestricted="true"/>

                                    </PermissionSet>

                              </NamedPermissionSets>

                              <CodeGroup class="FirstMatchCodeGroup" version="1" PermissionSetName="Nothing">

                                    <IMembershipCondition class="AllMembershipCondition" version="1"/>

                                    <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="ASP.Net">

                                          <IMembershipCondition class="UrlMembershipCondition" version="1" Url="$AppDirUrl$/*"/>

                                    </CodeGroup>

                                    <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="ASP.Net">

                                          <IMembershipCondition class="UrlMembershipCondition" version="1" Url="$CodeGen$/*"/>

                                    </CodeGroup>

                                    <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="Nothing">

                                          <IMembershipCondition class="ZoneMembershipCondition" version="1" Zone="MyComputer"/>

                                          <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Name="Microsoft_Strong_Name" Description="This code group grants code signed with the Microsoft strong name full trust. ">

                                                <IMembershipCondition class="StrongNameMembershipCondition" version="1" PublicKeyBlob="002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293"/>

                                          </CodeGroup>

                                          <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Name="Ecma_Strong_Name" Description="This code group grants code signed with the ECMA strong name full trust. ">

                                                <IMembershipCondition class="StrongNameMembershipCondition" version="1" PublicKeyBlob="00000000000000000400000000000000"/>

                                          </CodeGroup>

                                    </CodeGroup>

                              </CodeGroup>

                        </PolicyLevel>

                  </policy>

            </security>

      </mscorlib>

</configuration>

 

0
Steve
Telerik team
answered on 21 Jun 2011, 07:36 AM
Hello Marc,

As noted in the Medium Trust Support help article that my colleague referenced in the previous post: The PDF rendering extension requires UnmanagedCode permission to operate.

Best wishes,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Marc
Top achievements
Rank 1
answered on 21 Jun 2011, 01:46 PM
Sorry for one last entry before giving up all hope,

They had given me hope by saying they use a modified Medium Trust config file and there were exceptions made. I was hoping your module was using a 3rd party library or .NET Framework module that could be referenced in their tweaked Medium Trust config file that would allow your module to run in their Medium Trust environment. From your last post, I assume that is not an option. Thanks for your quick response and great support.

Marc
Tags
General Discussions
Asked by
Marc
Top achievements
Rank 1
Answers by
Peter
Telerik team
Marc
Top achievements
Rank 1
Steve
Telerik team
Share this question
or