"Operation could destabilize the runtime" error with ASP.NET Medium Trust level in Cassini on Vista

Just because this apparently is not noted anywhere within googles reach I wanted to make a note of this for the potentially frustrated:

If you're trying to run an ASP.NET app under medium trust on Vista with UAC enabled you'll probably see this exception:

System.Security.VerificationException: Operation could destabilize the runtime.

Steps to reproduce:

Create blank ASP.NET web application project. Clear web.config of anything but "<trust level="Medium" />". Do "View in Browser" on Default.aspx.

I have not been able to reproduce this on XP machines or Vista machines running with UAC disabled.

The error does not occur if you load the same website in IIS. Disabling UAC most likely also solves the problem with Cassini (still not verified).

Filed under: ,

Comments

# "Operation could destabilize the runtime" error with ASP.NET Medium Trust level in Cassini on Vista - Mads Nissen said:

Pingback from  &quot;Operation could destabilize the runtime&quot; error with ASP.NET Medium Trust level in Cassini on Vista - Mads Nissen

Thursday, May 07, 2009 11:57 AM
# SharePoint Experts said:

Just because this apparently is not noted anywhere within googles reach I wanted to make a note of this

Thursday, May 07, 2009 12:12 PM
# "Operation could destabilize the runtime" error with ASP.NET … | Webmaster Tools said:

Pingback from  &quot;Operation could destabilize the runtime&quot; error with ASP.NET &#8230; | Webmaster Tools

Monday, May 11, 2009 3:47 PM

Leave a Comment

(required) 
(required) 
(optional)
(required)