"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
# Shiny eyes said:

Indeed it was extremely interesting for me to read this post. Thanks for it. I like such topics and anything connected to this matter. I definitely want to read a bit more on that blog soon.

Sunday, May 23, 2010 6:46 PM
# india escort servises said:

Really cool post to pay attention to to my mind. The only question I have, why haven't you you place that article to social bookmarks? That can bring big traffic to this blog.

Tuesday, June 01, 2010 2:56 PM
# london escorts said:

Pretty nice site to pay attention to in my opinion. A small question, why don't you add it to social media? That may bring rather big traffic to this article.

Friday, June 18, 2010 3:49 PM
# escorts in uk said:

It is certainly interesting for me to read this article. Thanks for it. I like such themes and anything connected to them. I would like to read more on that blog soon. BTW, pretty good design this site has, but don’t you think it should be changed once in a few months?

Jane Swift

Friday, July 09, 2010 5:23 PM
# girls brunette said:

It was rather interesting for me to read the post. Thanx for it. I like such themes and everything that is connected to them. I definitely want to read more on that blog soon.

Joan Simpson

Tuesday, August 10, 2010 6:24 PM