CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

ReportViewer crash on parameter

Not Answered This post has 0 verified answers | 2 Replies | 0 Followers

Top 100 Contributor
68 Posts
superkuton posted on Sun, Jul 8 2012 4:23 AM

Environment:

Visual Studio 2012, .NET 4.5, CSLA 4.5

Problem:

A reportviewer works ok, but when passed in a parameter encounters an error.

Exceptions:

An error occurred during local report processing. Failed to load expression host assembly.Details: Attempt by method Csla.Core.FieldManager.FieldDataManager.ForceStatic.FieldInit(System.Type) to access field Csla.ReadOnlyBase Project.Library.Security.PTIdentity ... CachedAnonymousMethodDelegate2 failed.

Digging into the errors, I found the following exception thrown:

"Request for the permission of type System.Security.Permisions.ReflectionPermission, mscorlib, version 4.0.0.0, ...... failed."

 

Please help. Thanks.

All Replies

Top 100 Contributor
68 Posts

I was able to google a solution from this link.

Do you have any other solution guys, like an application-wide setting? Or this is just ok?

Top 10 Contributor
1,813 Posts

Looks good to me!! Nice solution.

Jonny Bekkum, Norway CslaContrib Coordinator

Page 1 of 1 (3 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems