Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7555489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:37:21+00:00 2026-05-30T11:37:21+00:00

I have a VS 2010 WebForm application which uses a ReportViewer control and it

  • 0

I have a VS 2010 WebForm application which uses a ReportViewer control and it is running perfectly on the local DevFabric off the SqlAzure database and using SqlAzure Session state (for the ReportViewer).

The application also uses ACS Federation which all works fine both in local DevFabric and in the deployed azure webrole.

The webrole (2 instances) are configured with FullTrust

Now, having added in the ReportViewer and related rdlcs, When I deploy to the cloud I can get the ReportViewer to render but rather than get any data I get an exception as follows :

The Hidden expression for the tablix ‘TimesheetDate’ contains an error: Request for the permission of type ‘System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed.

As I stated, this works perfectly in local DevFabric but fails in Azure webrole (2 instances) on any reports where the Hidden field is used.

Clearly the expression is causing a security issue but as this is Azure I am uncertain about where I can go about changing settings

Anybody have any idea?

EDIT: Just found this as a possible fix:

ReportViewer1.LocalReport.SetBasePermissionsForSandboxAppDomain(
     new System.Security.PermissionSet(
       System.Security.Permissions.PermissionState.Unrestricted));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:37:22+00:00Added an answer on May 30, 2026 at 11:37 am

    This fix was utilised in an Azure WebRole and worked fine.

    Given that Azure patching is ‘standard’ then it is less likely that a other patches might cause an issue.

    The code in the EDIT has been working in a deployed Azure environment since late October 2011

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running windows 7 x64 enterprise. I have Office 2010 x64 installed. I
I have Delphi 2010. XXX-component uses File_Path:AnsiString. A path can be written in XXX-language.
I have an asp.net application that i am modifying. I setup visual studio 2010
If i have three textboxes in my vb.net webform .. Textbox1.text=Sumit Textbox2.text=4-Dec-2010 Textbox3.text=1-Jan-2011 I
I'm using the latest (2010) ReportViewer Web Control in an ASP.NET 4 project. My
I have VS 2010 Professional (which, unlike Premium , does not include access to
does Delphi 2010 have C# Style XML comments that show up when hovering over
We have installed TFS 2010 RC. By default it creates a project collection called
I have Visual Studio 2010 beta 2 installed and Expression Blend Preview for .NET
Input @StartDate = '01/25/2010' @EndDate = '02/06/2010' I have 2 CTEs in a stored

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.