Agramont.net

Sr. Product Manager, Enterprise Tech for Accelrys
Welcome to Agramont.net Sign in | Join | Help
in Search

Conrad Agramont's Blog

WSS and Visual Studio.NET 2003 (Part 2)

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.

Comments

 

Conrad Agramont's WebLog said:

So I found a pretty cool article out using a “Whidbey like” method of doing Master pages with the .NET...
June 23, 2006 11:08 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About agramont

Conrad Agramont is focused on .NET Development, Virtualization, Windows 7, Windows Server 2008, Virtual Desktop, and Microsoft Business Productivity (Exchange, Office, Live Communications)
For more information on Conrad and Agramont Services, please visit: http://agramontservices.com
Follow Me On Twitter (@agramont)

This Blog

Syndication

News

Add to Technorati Favorites

Community Tools