Salient Solutions

wrasslin ones and nones for fun and profit - Sky Sanders' Blog
posts - 96, comments - 70, trackbacks - 0

Request for the permission of type System.Security.Permissions.EnvironmentPermission failed.

 Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I have been working on an AppDomain sandbox and was plagued with permission failures where there should be none, namely at the constructor of a type being activated with CreateInstanceFrom, which should allow an Unrestricted permission assert in the constructor, even in a restricted AppDomain.

Ultimately I set exceptions to break and drilled down into the failed permission assert and noticed Read="AutoFakeEnabled".

This smelled like Typemock getting in my way and sure enough disabling Typemock resolved the issue.

I am not going to quantify the lost time, it would be embarassing, but it does raise some usability issues regarding Typemock.

 

Print | posted on Monday, March 08, 2010 3:57 PM |

Feedback

Gravatar

# re: Request for the permission of type System.Security.Permissions.EnvironmentPermission failed.

I'm elisha from Typemock support. I am checking this issue and I'll provide a solution soon. It seems like a bug in Isolator.
3/8/2010 9:58 PM | Elisha
Gravatar

# swiss watch replica

the full story on Nightline fake rolex tonight at 11:35 p.m. ET
Highlands cartier watches replica took off like a rocket, Cartier Couple Rings Stitt sa
10/20/2010 1:56 PM | swiss watch replica

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 6 and 7 and type the answer here:

Powered by: