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

Medium trust environment

26 Answers 357 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brian Olive
Top achievements
Rank 1
Brian Olive asked on 08 Feb 2007, 08:35 PM
Does the reporting tool work in a Medium Trust environment?

26 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 12 Feb 2007, 12:03 PM
Hi Brian,

We will do everything possible to support Medium Trust environment for the official version.
 

Greetings,
Rossen
the telerik team
0
Neil
Top achievements
Rank 1
answered on 16 Apr 2009, 08:25 AM

Dear Steve,
You responded to my message in another thread (Forum -- Medium/Partial Trust) by referring me to the thread on "Support for medium trust environment" but that one seems to have a fault (line 362 char 9 error: null is null or not an object thread ID 156745) so I cannot reply to it! I had already seen that thread but since no-one had bothered to reply to it, I decided to post to this one. Am I missing something, or should I take the lack of response to that thread as implying Telerik still has no response to this most obvious user requirement for Telerik Reporting to work on shared servers?

 

For anyone else searching for information about reporting packages that can be used on shared / hosted servers, ASPPDF has just announced a version of its software that will finally make the breakthrough. It is not yet in final release form but is available for download at www.asppdf.net. I'm sure we Telerik fans would prefer to see telerik respond to years of requests for this ability but, at least in the meantime, there is a well-respected package that is responding.

 

Best regards,   Neil

0
Neil
Top achievements
Rank 1
answered on 16 Apr 2009, 08:59 AM
Steve
In my earlier post on this thread I forgot to ask you the key question: is it possible for you to provide much more specific information about the trust requirements / limitations of the current version? Our website host is prepared to make changes to the server web.config if this would help but they have asked for more specific information to see what they can do - - their exact request is:
"Most software doesn’t need full trust, the development companies just say that to make it easy for them.  We can use a hybrid of a role by amending the .net config.  Do you have any details on modified trusts for the product you have ?"

Can you help?   Neil
0
Steve
Telerik team
answered on 17 Apr 2009, 10:43 AM
Hello Neil,

I'm sorry to hear you had problems with our webiste and forwarded your other thread to our web team, so they can look into the issue you've reported.
As to the medium trust environment support, although your host is probably correct for most software vendors, this is not the case with the reporting products. I've personally taken the time to test our direct competitors and they do not work under medium trust either. You can take a look at this fresh post that explains how they DO work, but at the same time have numerous limitations, two of which make the reports totally unusable (ability to use richtextbox, table item and of course export to PDF which is what 90% of people use reporting for in the first place).
We do not want to make any excuses, but providing out of the box medium trust support (with not a single permission required) for our product is not trivial at all, and our current goal is minimizing those requirements as much as possible. Believe me when I say that there is nothing that flatters us more than happy clients telling us how much they enjoy our product and appreciate the hard work we put into them. In this line of thoughts, we have the medium trust support in our TODO list with high priority.
And here are the current requirements, which hopefully will be less with two after the next release:

  • RegistryPermission
  • ConfigurationPermission
  • FileIOPermission (Read, Write, PathDiscovery  - C:\Windows)
  • UnmanagedCodePermission
  • WebPermission (only if using PictureBox items with url values)

Thank you for the patience and understanding.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Senthuran
Top achievements
Rank 2
answered on 05 Jun 2009, 05:01 AM
Hi Steve,

Do you know in which release this will be available?



Thanks
0
Svetoslav
Telerik team
answered on 10 Jun 2009, 01:43 PM
Hello Senthuran Sivananthan,

The RegistryPermission and ConfigurationPermission are no more required by Telerik Reporting. As we have already explained we are working on FileIOPermission. Anyway the last two permissions - UnmanagedCodePermission and WebPermission - will stay because there are no workarounds yet.

 
All the best,
Svetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
JUAN CARLOS SANCHEZ ROBLES
Top achievements
Rank 1
answered on 17 Jun 2009, 02:10 PM
Hi,

Today, does the reporting tool work in a Medium Trust environment?

Best regards,
Juan Carlos
0
Steve
Telerik team
answered on 17 Jun 2009, 02:21 PM
Hello JUAN,

Please review our last post, which is from last week. We do not have nightly builds, so additions to the product are only added on quarterly releases - Q2 is scheduled for the end of June and we've already elaborated on which permission would be required for medium trust.

We hope this answers your inquiry!

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
JUAN
Top achievements
Rank 1
answered on 25 Aug 2009, 01:44 PM
Hi again,

Today, does the reporting tool work in a Medium Trust environment?

Best regards,
Juan Carlos.
0
Steve
Telerik team
answered on 25 Aug 2009, 04:32 PM
Hello JUAN,

As noted in our Q2 SP1 release notes and this blog post - Telerik Reporting now works in medium trust environment.

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
JUAN
Top achievements
Rank 1
answered on 25 Aug 2009, 06:35 PM
That's a greate news, thanks for the info.

Best Regards,
Juan Carlos.
0
JUAN
Top achievements
Rank 1
answered on 27 Aug 2009, 05:01 AM
Hi again, I'm using Q2 2009 SP1 and I'm getting this error...  (above)

I supose this is the solution: "...rendering extensions require UnmanagedCode permission to operate at all times. Take that into consideration when deploying your application and if necessary disable those extensions to avoid security exceptions..."
Do you have code example to configure the web.config correctly?

Thanks.
Best Regards.

Juan Carlos.

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 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.

Stack Trace:

[SecurityException: Request failed.]
   Telerik.Reporting.ReportConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) +0
   System.ComponentModel.TypeConverter.ConvertTo(Object value, Type destinationType) +16
   System.Web.Compilation.CodeDomUtility.GenerateExpressionForValue(PropertyInfo propertyInfo, Object value, Type valueType) +432
   System.Web.UI.SimplePropertyEntry.GetCodeStatement(BaseTemplateCodeDomTreeGenerator generator, CodeExpression ctrlRefExpr) +125
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethodInternal(ControlBuilder builder, Type ctrlType, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, CodeStatementCollection statements, Boolean fStandardControl, Boolean fControlFieldDeclared, String deviceFilter, Boolean fControlSkin) +2407
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, Boolean fControlSkin) +536
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1187
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +552
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +552
   System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() +61
   System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers() +12
   System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() +920
   System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath) +45
   System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) +102
   System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) +99
0
Steve
Telerik team
answered on 27 Aug 2009, 08:02 AM
Hi JUAN,

Setting up the Telerik.Reporting section in the application config file is explained in Configuring Telerik Reporting help section. You can also review the following KB article that shows an example of such implementation: Limit export options in ReportViewer to certain format only.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jan
Top achievements
Rank 1
answered on 29 Jan 2013, 12:24 PM
Hello!
Sorry for using this old thread again but I get the exact same error as Juan.
I'm running Reporting Q3 2011 (5.3.11.1222), ASP.NET 2.0 and according to
my host the settings are Medium Trust.
I have added this to my web.config:
<configuration>
    <configSections>
        <section
                name="Telerik.Reporting"
                type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=x.x.x.x, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
                allowLocation="true"
                allowDefinition="Everywhere"/>
    </configSections>
    â€¦
</configuration>
Any help or suggestions on how to solve this would be greately appreciated. Best regards Jan

0
IvanY
Telerik team
answered on 01 Feb 2013, 10:16 AM
Hello Jan,

In general when your application works in Medium trust you do not have to do anything special since the export dropdown control will automatically be populated only with the available extensions. There is no need to add the Telerik Reporting section, since on its own it does not do anything, it only makes available the Telerik Reporting configuration section. You will have to actually use the configuration section and change things in order to see any results in your application.

On the other hand if you want to restrict the users from exporting to certain formats that is the way to go, but you will have to add one additional section which will configure which exports will be available - more information you can find in Telerik Reporting Configuration Section help article.

If this information does not help you and your issue is different please elaborate.

Greetings,
IvanY
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!

0
Jan
Top achievements
Rank 1
answered on 04 Feb 2013, 08:41 AM
Hello!
Thank's for your reply. No my intention is not to restrict user to export certain formats.
I just want to make my reports work... Any other things that could cause the security exception
that you know?

Thanks

Jan
0
IvanY
Telerik team
answered on 04 Feb 2013, 03:25 PM
Hi Jan,

If you're showing your reports in the ASP.NET report viewer, the export drop down box will not be populated with rendering extensions that do not operate in medium trust. However if you try to use them in your code, it will result in the aforementioned security exception. Can you clarify what is your case?

Greetings,
IvanY
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!

0
Jan
Top achievements
Rank 1
answered on 05 Feb 2013, 09:40 AM
Hello Ivan!

Yes I'm using the ASP.NET report viewer. I do not use the export dd box anywhere in my code.
Do you have any other ideas?
Thanks for your help!

My aspx.cs is empty. This is my .aspx:
<form id="form1" runat="server">
 <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
 </telerik:RadScriptManager>
 <uc1:meny ID="meny1" runat="server" />
 <div class="mainContainer">
     <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="700px" Skin="WebBlue"
         Width="80%" Report="bokarestatistik.kronorperkundvecka, bokarestatistik, Version=1.0.4773.20450, Culture=neutral, PublicKeyToken=null">
     </telerik:ReportViewer>
 </div>
 </form>

This is my .Designer.cs file
namespace bokarestatistik
{
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;
 
    partial class kronorperkundvecka
    {
        #region Component Designer generated code
        /// <summary>
        /// Required method for telerik Reporting designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Telerik.Reporting.TableGroup tableGroup1 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup2 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup3 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup4 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup5 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup6 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup7 = new Telerik.Reporting.TableGroup();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(kronorperkundvecka));
            Telerik.Reporting.ReportParameter reportParameter1 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter2 = new Telerik.Reporting.ReportParameter();
            this.textBox11 = new Telerik.Reporting.TextBox();
            this.textBox18 = new Telerik.Reporting.TextBox();
            this.textBox28 = new Telerik.Reporting.TextBox();
            this.textBox32 = new Telerik.Reporting.TextBox();
            this.textBox33 = new Telerik.Reporting.TextBox();
            this.detail = new Telerik.Reporting.DetailSection();
            this.crosstab2 = new Telerik.Reporting.Crosstab();
            this.textBox1 = new Telerik.Reporting.TextBox();
            this.textBox8 = new Telerik.Reporting.TextBox();
            this.textBox12 = new Telerik.Reporting.TextBox();
            this.textBox19 = new Telerik.Reporting.TextBox();
            this.textBox20 = new Telerik.Reporting.TextBox();
            this.textBox21 = new Telerik.Reporting.TextBox();
            this.textBox15 = new Telerik.Reporting.TextBox();
            this.sqlDataSource1 = new Telerik.Reporting.SqlDataSource();
            this.textBox2 = new Telerik.Reporting.TextBox();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            //
            // textBox11
            //
            this.textBox11.Angle = 270;
            this.textBox11.Format = "{0:d}";
            this.textBox11.Name = "textBox1";
            this.textBox11.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(1.5), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox11.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left;
            this.textBox11.StyleName = "Aspect.TableHeader";
            this.textBox11.Value = "= Fields.fldDatum";
            //
            // textBox18
            //
            this.textBox18.Name = "textBox18";
            this.textBox18.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(2), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox18.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Bottom;
            this.textBox18.StyleName = "Aspect.TableHeader";
            this.textBox18.Value = "Summa totalt";
            //
            // textBox28
            //
            this.textBox28.Name = "textBox11";
            this.textBox28.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(6), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox28.StyleName = "Aspect.TableGroup";
            this.textBox28.Value = "Kund";
            //
            // textBox32
            //
            this.textBox32.Multiline = false;
            this.textBox32.Name = "textBox2";
            this.textBox32.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(6), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox32.StyleName = "Aspect.TableGroup";
            this.textBox32.TextWrap = false;
            this.textBox32.Value = "= Fields.fldNamn";
            //
            // textBox33
            //
            this.textBox33.Name = "textBox7";
            this.textBox33.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(6), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox33.StyleName = "Aspect.TableGroup";
            this.textBox33.Value = "Summa omsättning";
            //
            // detail
            //
            this.detail.Height = Telerik.Reporting.Drawing.Unit.Cm(3);
            this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.crosstab2,
            this.textBox2});
            this.detail.Name = "detail";
            //
            // crosstab2
            //
            this.crosstab2.Anchoring = ((Telerik.Reporting.AnchoringStyles)((Telerik.Reporting.AnchoringStyles.Top | Telerik.Reporting.AnchoringStyles.Left)));
            this.crosstab2.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Telerik.Reporting.Drawing.Unit.Cm(1.5000007152557373)));
            this.crosstab2.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Telerik.Reporting.Drawing.Unit.Cm(2.0000004768371582)));
            this.crosstab2.Body.Rows.Add(new Telerik.Reporting.TableBodyRow(Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929)));
            this.crosstab2.Body.Rows.Add(new Telerik.Reporting.TableBodyRow(Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929)));
            this.crosstab2.Body.Rows.Add(new Telerik.Reporting.TableBodyRow(Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929)));
            this.crosstab2.Body.SetCellContent(1, 0, this.textBox1);
            this.crosstab2.Body.SetCellContent(2, 0, this.textBox8);
            this.crosstab2.Body.SetCellContent(0, 0, this.textBox12);
            this.crosstab2.Body.SetCellContent(0, 1, this.textBox19);
            this.crosstab2.Body.SetCellContent(1, 1, this.textBox20);
            this.crosstab2.Body.SetCellContent(2, 1, this.textBox21);
            tableGroup2.Name = "Group1";
            tableGroup1.ChildGroups.Add(tableGroup2);
            tableGroup1.Groupings.AddRange(new Telerik.Reporting.Data.Grouping[] {
            new Telerik.Reporting.Data.Grouping("=Fields.fldDatum")});
            tableGroup1.Name = "fldDatum";
            tableGroup1.ReportItem = this.textBox11;
            tableGroup1.Sortings.AddRange(new Telerik.Reporting.Data.Sorting[] {
            new Telerik.Reporting.Data.Sorting("=Fields.fldDatum", Telerik.Reporting.Data.SortDirection.Asc)});
            tableGroup4.Name = "Group8";
            tableGroup3.ChildGroups.Add(tableGroup4);
            tableGroup3.Name = "Group7";
            tableGroup3.ReportItem = this.textBox18;
            this.crosstab2.ColumnGroups.Add(tableGroup1);
            this.crosstab2.ColumnGroups.Add(tableGroup3);
            this.crosstab2.ColumnHeadersPrintOnEveryPage = true;
            this.crosstab2.Corner.SetCellContent(0, 0, this.textBox15);
            this.crosstab2.DataSource = this.sqlDataSource1;
            this.crosstab2.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.textBox1,
            this.textBox8,
            this.textBox12,
            this.textBox19,
            this.textBox20,
            this.textBox21,
            this.textBox11,
            this.textBox18,
            this.textBox15,
            this.textBox28,
            this.textBox32,
            this.textBox33});
            this.crosstab2.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(0), Telerik.Reporting.Drawing.Unit.Cm(0.799899697303772));
            this.crosstab2.Name = "crosstab2";
            tableGroup5.Name = "Group5";
            tableGroup5.ReportItem = this.textBox28;
            tableGroup6.Groupings.AddRange(new Telerik.Reporting.Data.Grouping[] {
            new Telerik.Reporting.Data.Grouping("=Fields.fldNamn")});
            tableGroup6.Name = "fldNamn";
            tableGroup6.ReportItem = this.textBox32;
            tableGroup6.Sortings.AddRange(new Telerik.Reporting.Data.Sorting[] {
            new Telerik.Reporting.Data.Sorting("=Fields.fldNamn", Telerik.Reporting.Data.SortDirection.Asc)});
            tableGroup7.Name = "Group4";
            tableGroup7.ReportItem = this.textBox33;
            this.crosstab2.RowGroups.Add(tableGroup5);
            this.crosstab2.RowGroups.Add(tableGroup6);
            this.crosstab2.RowGroups.Add(tableGroup7);
            this.crosstab2.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(9.5000009536743164), Telerik.Reporting.Drawing.Unit.Cm(2.2000000476837158));
            this.crosstab2.StyleName = "";
            //
            // textBox1
            //
            this.textBox1.Name = "textBox4";
            this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(1.5), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox1.StyleName = "Aspect.TableBody";
            this.textBox1.Value = "= Sum((Fields.fldBokningar + Fields.fldOvriga + Fields.fldSamtal1 + Fields.fldOvr" +
                "iga1 + Fields.fldApo) * Fields.fldPris)";
            //
            // textBox8
            //
            this.textBox8.Name = "textBox8";
            this.textBox8.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(1.5), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox8.StyleName = "Aspect.TableHeader";
            this.textBox8.Value = "= Sum((Fields.fldBokningar + Fields.fldOvriga + Fields.fldSamtal1 + Fields.fldOvr" +
                "iga1 + Fields.fldApo) * Fields.fldPris)";
            //
            // textBox12
            //
            this.textBox12.Name = "textBox12";
            this.textBox12.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(1.5), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox12.StyleName = "Aspect.TableHeader";
            this.textBox12.Value = "Oms";
            //
            // textBox19
            //
            this.textBox19.Name = "textBox19";
            this.textBox19.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(2), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox19.StyleName = "Aspect.TableHeader";
            this.textBox19.Value = "Oms";
            //
            // textBox20
            //
            this.textBox20.Name = "textBox20";
            this.textBox20.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(2), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox20.StyleName = "Aspect.TableHeader";
            this.textBox20.Value = "= Sum((Fields.fldBokningar + Fields.fldOvriga + Fields.fldSamtal1 + Fields.fldOvr" +
                "iga1 + Fields.fldApo) * Fields.fldPris)";
            //
            // textBox21
            //
            this.textBox21.Name = "textBox21";
            this.textBox21.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(2), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox21.StyleName = "Aspect.TableHeader";
            this.textBox21.Value = "= Sum((Fields.fldBokningar + Fields.fldOvriga + Fields.fldSamtal1 + Fields.fldOvr" +
                "iga1 + Fields.fldApo) * Fields.fldPris)";
            //
            // textBox15
            //
            this.textBox15.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(0.099999949336051941), Telerik.Reporting.Drawing.Unit.Cm(0.099999949336051941));
            this.textBox15.Name = "textBox15";
            this.textBox15.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(6), Telerik.Reporting.Drawing.Unit.Cm(0.550000011920929));
            this.textBox15.StyleName = "";
            this.textBox15.Value = "";
            //
            // sqlDataSource1
            //
            this.sqlDataSource1.ConnectionString = "bokarestatistik.Properties.Settings.connDmtmData";
            this.sqlDataSource1.Name = "sqlDataSource1";
            this.sqlDataSource1.Parameters.AddRange(new Telerik.Reporting.SqlDataSourceParameter[] {
            new Telerik.Reporting.SqlDataSourceParameter("@start", System.Data.DbType.DateTime, "=Parameters.start.Value"),
            new Telerik.Reporting.SqlDataSourceParameter("@slut", System.Data.DbType.DateTime, "=Parameters.slut.Value")});
            this.sqlDataSource1.SelectCommand = resources.GetString("sqlDataSource1.SelectCommand");
            //
            // textBox2
            //
            this.textBox2.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Cm(0), Telerik.Reporting.Drawing.Unit.Cm(0));
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(10), Telerik.Reporting.Drawing.Unit.Cm(0.60000002384185791));
            this.textBox2.Value = "Visar (fldBok + fldSamtal1 + fldOvr + fldOvr1 + fldApo) * fldPris";
            //
            // kronorperkundvecka
            //
            this.ExternalStyleSheets.Add(new Telerik.Reporting.Drawing.ExternalStyleSheet("StyleSheets\\aspect_style.xml"));
            this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.detail});
            this.PageSettings.Landscape = false;
            this.PageSettings.Margins.Bottom = Telerik.Reporting.Drawing.Unit.Cm(2.5399999618530273);
            this.PageSettings.Margins.Left = Telerik.Reporting.Drawing.Unit.Cm(2.5399999618530273);
            this.PageSettings.Margins.Right = Telerik.Reporting.Drawing.Unit.Cm(2.5399999618530273);
            this.PageSettings.Margins.Top = Telerik.Reporting.Drawing.Unit.Cm(2.5399999618530273);
            this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.A4;
            reportParameter1.Name = "start";
            reportParameter1.Text = "Start";
            reportParameter1.Type = Telerik.Reporting.ReportParameterType.DateTime;
            reportParameter1.Visible = true;
            reportParameter2.Name = "slut";
            reportParameter2.Text = "Slut";
            reportParameter2.Type = Telerik.Reporting.ReportParameterType.DateTime;
            reportParameter2.Visible = true;
            this.ReportParameters.Add(reportParameter1);
            this.ReportParameters.Add(reportParameter2);
            this.Style.BackgroundColor = System.Drawing.Color.White;
            this.Name = "kronorperkundvecka";
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 
        }
        #endregion
 
        private Telerik.Reporting.DetailSection detail;
        private Crosstab crosstab2;
        private Telerik.Reporting.TextBox textBox1;
        private Telerik.Reporting.TextBox textBox8;
        private Telerik.Reporting.TextBox textBox12;
        private Telerik.Reporting.TextBox textBox19;
        private Telerik.Reporting.TextBox textBox20;
        private Telerik.Reporting.TextBox textBox21;
        private Telerik.Reporting.TextBox textBox11;
        private Telerik.Reporting.TextBox textBox18;
        private Telerik.Reporting.TextBox textBox15;
        private Telerik.Reporting.TextBox textBox28;
        private Telerik.Reporting.TextBox textBox32;
        private Telerik.Reporting.TextBox textBox33;
        private SqlDataSource sqlDataSource1;
        private Telerik.Reporting.TextBox textBox2;
    }
}






0
Steve
Telerik team
answered on 07 Feb 2013, 04:49 PM
Hello Jan,

It appears there is some miscommunication. From your post it is clear that you are using the ASP.NET report viewer and you're not using code to reference a rendering extension. We notice that you're setting the report declaratively in the aspx markup, however you should set the Report property programmatically as instructed in the Medium Trust Support help article. You can find sample code how to do that in the following help article: How to: Add report viewer to a web page.

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!

0
Jan
Top achievements
Rank 1
answered on 08 Feb 2013, 12:57 PM
Hello Steve!
Thank you for your reply! That helped! I now see my report. However when I fill in parameters and hit the preview button I get this in the "parameter area" of the report:

Server Error in '/' Application.

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 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.

Stack Trace:

[SecurityException: Request failed.]
   Telerik.Reporting.Drawing.UnitConverter..cctor() in UnitConverter.cs:16


Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456            



Thank you for your patience with me...

Regards Jan
0
Jan
Top achievements
Rank 1
answered on 11 Feb 2013, 01:42 PM
Hello again!

Do I need Reporting Q3 2012 for this to work? I use Q2 Version=6.1.12.820

Best regards

Jan
0
Steve
Telerik team
answered on 12 Feb 2013, 01:05 PM
Hi Jan,

We have not been able to reproduce such a problem in our local tests and I have attached a sample project that functions correctly in our local tests with the latest official Q3 2012 SP1 release. We have tested this project with the 6.1.12.820 version as well and it works correctly as well. We would appreciate if you modify the project to exhibit the problem and attach the project in an official support ticket.

Greetings,
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!

0
Jan
Top achievements
Rank 1
answered on 15 Feb 2013, 08:29 AM

Hello!

Thank you for your reply and attached project. Im struggeling a bit here to reproduce my problem in a sample project. Thing is that the problem I had with the parameters area was in version 6.1.12.717 Now after updating to 6.1.12.820 I'm facing other problems.
The report doesn't load. This is probably due to some misstake by me. I will get back here as soon as I will be able to reproduce the problem.

Thanks

Jan

0
Jan
Top achievements
Rank 1
answered on 06 Mar 2013, 10:31 AM
Hello again!
I have not been able to reproduce the parameter error locally on my machine. Everything looks good locally. However now on the remote site I get this error message:

Could not load type 'Telerik.Reporting.Configuration.ReportingConfigurationSection' from assembly 'Telerik.Reporting, Version=6.1.12.820, Culture=neutral, PublicKeyToken=a9d7983dfcc261be'.

at System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost host, String typeString, Boolean throwOnError)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory..ctor(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)

Any ideas?

Thanks!
0
Peter
Telerik team
answered on 08 Mar 2013, 10:22 AM
Hi Jan,

We have changed the Telerik.Reporting.Processing.Config.ReportingConfigurationSection to Telerik.Reporting.Configuration.ReportingConfigurationSection in Q3 2012 6.2.12.1017. Thus our suggestion is to upgrade to the latest Telerik Reporting release or refer to the local documentation that came with your Telerik Reporting installation.

Greetings,
Peter
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

0
Jan
Top achievements
Rank 1
answered on 08 Mar 2013, 12:48 PM
Ok I will try the latest trial and see if that helps!

Cheers

Jan
Tags
General Discussions
Asked by
Brian Olive
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Neil
Top achievements
Rank 1
Steve
Telerik team
Senthuran
Top achievements
Rank 2
Svetoslav
Telerik team
JUAN CARLOS SANCHEZ ROBLES
Top achievements
Rank 1
JUAN
Top achievements
Rank 1
Jan
Top achievements
Rank 1
IvanY
Telerik team
Peter
Telerik team
Share this question
or