System.Security.SecurityCriticalScope in webplayer

I get this error when I switch my project from Standalone to Webplayer.

Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.TypeLoadException: Could not load type ‘System.Security.SecurityCriticalScope’ from assembly ‘mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
at (wrapper managed-to-native) System.Reflection.Assembly:InternalGetType (System.Reflection.Module,string,bool,bool)

I know when you switch to web player it says WebplayerSubset (NOT .net 2.0 or .net 2.0 subset)

Is there a work around?

  • Matt

I have the same problem. Did anybody find a solution? I’m guessing it has to do with a webservice, I get this error since I included calls to a WCF service to the project. It works fine as standalone player.

SecurityCriticalScope is only available in “.NET 2.0” but not at “2.0 subset”, “Web player”, “Micro”.

Since you can not change the level for the Web player and can not include a dll at the Web player you can not do anything about it.

You can find out about what is available where at this site: