SSRS viewer Remote Mode Medium Trust
We have been trying to get a website moved over to Rackspace Cloudsites as the host. They say it won’t work because they used a modified medium trust mode:
http://cloudsites.rackspacecloud.com/index.php/Overview_of_modified_Medium_Trust
I read online that report viewer control (we are using version 10, VS 2010, and 4.0 .NET) should work in medium trust, if using remote mode which we are. Anyone know if this is
true? If not then what about the viewer needs full trust, with so many hosting companies not offering that it seems like Microsoft is losing out on its reporting platform from being adopted. Apparently they won’t put the required DLL’s in the GAC
either.
We made a really simple .NET application that only has the report viewer on it and we configured a development IIS win 2008 machine for testing. Loads report in full trust with
no issues, we use the modified medium trust mode as provided by Rackspace for testing and site wont load get error message (see below). We add the viewer DLL’s to the GAC it runs fine but Rackspace won’t do that for us. Any ideas, other than dumping
RackSpace? I appreciate your help as this is driving me crazy!
Here is Error Message:
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods
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:
[InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods]
Microsoft.Reporting.WebForms.EmbeddedResourceOperation._GetProductVersion() +29
Microsoft.Reporting.WebForms.EmbeddedResourceOperation.get_ProductVersion() +14
Microsoft.Reporting.WebForms.EmbeddedResourceOperation.CreateUrl(String resourceName, String operationType, String[] additionalParams) +258
Microsoft.Reporting.WebForms.EmbeddedResourceOperation.CreateUrl(String resourceName) +32
Microsoft.Reporting.WebForms.DocMapArea..ctor(ReportViewer viewer) +20
Microsoft.Reporting.WebForms.ReportViewer.CreateChildControls() +1617
System.Web.UI.Control.EnsureChildControls() +102
System.Web.UI.Control.PreRenderRecursiveInternal() +42
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Server Error in '/' Application.
Cannot perform CAS Asserts in Security Transparent methods
June 16th, 2011 7:55pm
Hi david12345678901234567890,
ReportViewer Control only works in medium trust if you are running remote mode.
Remote mode
requires medium trust and. Local mode requires full trust.
If you have any concern about this, please submit a feedback at
http://connect.microsoft.com/SQLServer/Feedback and hope Microsoft improve this feature in the next service pack or product release.
Any questions, please feel free to ask.
Thanks,
Eileen
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2011 5:58am