M
Mark Rodrigues
Hi everyone,
Today we hit a problem when we rolled a new web-site are were
presented with a error on our page that looked like:
Security Exception
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the required
permission please contact your system administrator or change the
application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Failure decoding
embedded permission set object.
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:
[SecurityException: Failure decoding embedded permission set object.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
+0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark&
stackMark) +300
System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark) +68
System.Reflection.Assembly.Load(String assemblyString) +19
System.Web.UI.CompilationConfiguration.LoadAssemblies(Hashtable
original) +200
Well we looked on the Web and didn't really find an answer to what
caused this problem. Well we worked it out This post is really just
here to help generations that follow.
The problem is that we didn't have the .NET 1.1 framework deployed on
a web-server.
It was pretty obvious afterwards actually but we developed the new
Web-site with VS.NET 2003, where the old version was developed on
VS.NET.
The error message wasn't as helpful as we would have liked though.
I hope this little addendum helps.
Mark Rodrigues
Today we hit a problem when we rolled a new web-site are were
presented with a error on our page that looked like:
Security Exception
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the required
permission please contact your system administrator or change the
application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Failure decoding
embedded permission set object.
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:
[SecurityException: Failure decoding embedded permission set object.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
+0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Boolean stringized, Evidence assemblySecurity, StackCrawlMark&
stackMark) +300
System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark) +68
System.Reflection.Assembly.Load(String assemblyString) +19
System.Web.UI.CompilationConfiguration.LoadAssemblies(Hashtable
original) +200
Well we looked on the Web and didn't really find an answer to what
caused this problem. Well we worked it out This post is really just
here to help generations that follow.
The problem is that we didn't have the .NET 1.1 framework deployed on
a web-server.
It was pretty obvious afterwards actually but we developed the new
Web-site with VS.NET 2003, where the old version was developed on
VS.NET.
The error message wasn't as helpful as we would have liked though.
I hope this little addendum helps.
Mark Rodrigues