SharePoint Code Access Security-requirements to call Page.TemplateControl.ParseControl

  • SharePoint Code Access Security-requirements to call Page.TemplateControl.ParseControl anchorPoint

    What are the CAS policy requirements to call the method Page.TemplateControl.ParseControl?

    Specifically, in SharePoint I've tried to call the method in a Minimum-trust environment, but get this error on the page:

    Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    However, in a medium-trust environment, no problems.

  • Both TemplateControl and TemplateParser requires minimal AspNetHostingPermission's so that shouldn't be a problem.

    Try using PermCalc.exe (part of .NET 2.0 framework) to identify permissions needed for your assembly. It will output a permissionset where you can check the Demand elements for required permissions.

Related questions and answers
  • I'm having trouble setting up the Partner Portal. I got a System.NotImplementedException when I ran the setup script. Can someone shine some light on this? I am running VSeWSS using the local machine administrator account. 18:05:14.24 call 02_CreateContosoServices.bat ************************************ 18:05:24.06 call 03a_BuildSolutions.bat ************************************ 18:05:37.51 call 03b_PackageSolutions.bat 2010/01/03 17:45:27 Error Error: System.NotImplementedException System.NotImplementedException: The method or operation is not implemented. at EnvDTE.Project.get

  • I want to retrieve only the documents that are present inside a specific folder of a document library using GetListItemsAsync method. Here is how i call it: sc.GetListItemsAsync("MyDocLib", null, null, null, null, XElement.Parse(@"<QueryOptions><Folder>MyFolder</Folder></QueryOptions>"), null); The call is returning all the documents inside "MyDocLib" and not only those that are in "MyFolder". How can I do that?

  • A client is asking for a custom application to be created and deployed within the corporate intranet. Part of the requirements are to publish some of the content also available on the internet site. Both sites are built on SharePoint 2007 but they are on different farms and on different networks. Can the Content Deployment API (and associated tools) handle moving selected content across networks with no direct connectivity? Can we use web services? Has anybody done this sort of thing? If so what approaches have you taken? Thanks, James.

  • We have experienced a strange issue in SharePoint. We backed-up and restored a site collection from WebApp1 to WebApp2 and both the site collections have Publishing Features activated (BLOB CACHE was NOT Enabled) After successful restore , none of the sites were working. Following Exception has occured : Site id <> could not be found OR File not found Solution : In the stack trace there method sitecachesettings(guid id).....Reset the IIS, and booom every thing works fine :) My Question : Where is object cache stored ??? how it works?? point me any links where I can dig in deep

  • I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I have the following requirements about `Task Management and want to know whether SharePoint Server 2007 can implement such feature. And if not, what kind of Microsoft or non-Microsoft product could achieve such goals (and could integrate with SharePoint Server 2007). I prefer Microsoft product because I have requirement to integrate task management feature into SharePoint, and I think using Microsoft product is easier for integration with SharePoint. :-) Requirements are, For Task Management, task

  • I have this (an attempt to solve the task): <xsl:stylesheet xmlns:x="" xmlns:d="" version="1.0" exclude-result-prefixes.../WebParts/v2/DataView/designer" xmlns:xsl="" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal"> <xsl:output method="html" indent="no"/> <xsl:decimal-format NaN=""/> <xsl:template match="/"> <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row

  • I have recently generated a couple of ListDefinitions using both SPSource and VSeWSS SharePoint Solution Generator. In both cases, surpisingly, Visual Studio reports fake schema validation errors in schema.xml like The 'Description' attribute is not declared" for List xmlns="" BaseType="0" DefaultItemOpen="0" Description=""... >... followed by errors like Could not find schema information for the element ''. Can anyone help me fix that?

  • I am using SharePoint 2007 Enterprise + Publishing portal template + Windows Server 2008. And I am developing using ASP.Net + C# + .Net 3.5 + VSTS 2008 on SharePoint Server 2007. I am developing a custom Forms authentication based on Forms authentication interface. I am learning using Forms Authentication with SharePoint and my confusion is about this method -- ValidateUser of Forms Authentication, here is MSDN link, My confusions are about which component will call ValidateUser method? Do I

  • ) at XXXXXX.SharePoint.Lists.ListHelper.SaveListAsTemplate(SPList List, Boolean SaveContent) in C:\SharePoint Development Projects\XXXXXX.SharePoint\XXXXXX.SharePoint\Lists\ListHelper.vb:line 145 at XXXXXX.SharePoint.Lists.ListHelper.DeleteList(SPList List, DeleteOperation Operation) in C:\SharePoint Development Projects\XXXXXX.SharePoint\XXXXXX.SharePoint\Lists\ListHelper.vb:line 121 at XXXXXX.SharePoint.Lists.ListHelper.DeleteList(SPWeb Web, String ListName, DeleteOperation Operation) in C:\SharePoint Development Projects\XXXXXX.SharePoint\XXXXXX.SharePoint

Data information