So I found a pretty cool article out using a “Whidbey like” method of doing Master pages with the .NET Framework 1.1 (Simplify Site Updates with Templates). At work, I tried the code out and thought it was pretty interesting. So I thought I would give it a go on my test computer at home, but of course I had issues.
Here is the error I recieved from ASP.NET:
Debugging is not supported under current trust level settings.
(I'm being lazy, so I'm not going to detail my troubleshooting steps)
Apparently, WSS set some trust levels at the root level of my server that is making me have some issues. Found out more about this here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/smpscCodeAccessSecurityAdmin.asp
So now I had to find a way to allow child virtual directories to change the trust leve. Found out how to do this on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfLocationElement.asp?frame=true
Then I updated the Web.Config on my new virtual directory (XmlPageTemplate) and set the trust level to Full. Found out about this on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfTrustSection.asp?frame=true
This is what I changed in my web.config of the new child virtual directory:
<
trust level="Full" />
Hope this helps some of you.