This project is read-only.


Medium Trust optimizations


Modify MVC SiteMap provider to run under Medium Trust.

I've attached patches to two files:
I'm using MvcSiteMapProvider from tag 2.3.0 on a shared host under Medium Trust now.

Thanks for this great project

file attachments

Closed Jan 3, 2011 at 7:35 AM by


maartenba wrote Jan 3, 2011 at 7:30 AM

Thanks for the patch!

wrote Jan 3, 2011 at 7:35 AM

Resolved with changeset 55730.

wagneripjr wrote Jan 3, 2011 at 1:33 PM

You're welcome :)

foetalstalk wrote Apr 20, 2011 at 9:33 PM

Not quite finished....
In order to run under in a .Net4 environment you also need to add:
[assembly: AllowPartiallyTrustedCallers]

wagneripjr wrote Apr 21, 2011 at 1:57 PM

@foetalstalk It's needed and revision 52753 already had that ;)

Ridermansb wrote Feb 14, 2012 at 8:05 PM

Excuse my ignorance but I can not use the MvcSiteMap provider in Medium Trust.

I published a doubt in Stackoverflow:
What should I do with this file? ""?

I downloaded (Via NuGet) the latest version of MvcSiteMap and I can not use the command @Html.MvcSiteMap().Menu()