CSharpFeeds - All your C# feeds in one place.

Sponsors

Thursday, September 24, 2009

Debugger Visualizers not working in ASP.NET Medium Trust

by Rick Strahl via Rick Strahl's Web Log on 9/24/2009 7:48:07 AM

So imagine you are running your ASP.NET application’s in medium trust and you want to access a debugger visualizer like this:

VisualizeThis

by clicking on the little search icon in the debugger tooltip, you run into a message like this:

The application you are debugging has insufficient privileges to allow the use of custom visualizers

or more visually here failing with a DataTable visualizer:

 DebuggerVisualizerAspNet

Ah yes, see the documentation. I know I should have read that one page pamphlet Microsoft ships for documentation with ASP.NET. Right.

The problem is that the application needs to run in Full trust in order to use debugger visualizers. This can be changed in Web.config by making sure that the trust key :

<system.web>
  <trust level="Full" />
</system.web
>

is set to Full trust.

DebuggerVisualizer

Debugger visualizers can come from many sources so the security environment for the visualizers is different than than main debugger and as such it requires explicit permissions to execute.

Be careful with these settings though. For production sites it’s recommended you run in Medium trust, so if you change settings in your local config file remember not to send them up to the server. Better yet, change the settings only while you need it for debugging and then set it back.

I run into this frequently because I try to set up my Web sites during development with Medium trust if I can to see all the places when and if I run into problems. So I often end up having to change that switch temporarily for debugging and then setting it back when I’m done with this task.

© Rick Strahl, West Wind Technologies, 2005-2009
Posted in ASP.NET   Visual Studio  
kick it on DotNetKicks.com
email it!bookmark it!digg it!

Original Post: Debugger Visualizers not working in ASP.NET Medium Trust

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us