When I am trying to access sharepoint object model I am getting exception . just I am getting the context of the site.
--------------------------
//Code I have written
---------------------------
output.Write(SPEncode.HtmlEncode(SPControl.GetContextWeb(Context).Name.ToString()));
--------------------------------
The Exception I am getting
---------------------------------
Request for the permission of type Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c failed.
-------------