Remove Default CAS

Jul 29, 2009 at 6:32 PM


I've built a simple web server control that I want to deploy for a publishing site. The only CAS requirement i have is to access the SP object model, so I added the sharepoint permission security action to the render method and even to the assemblyinfo file.

Thing is if I build with buildCas option I get lots of CAS IPermission entities added to the solutio manifest regarding SQL/io/smtp access which i dont want. If i try building with the customCAS switch pointing to a customcas file it adds the ipermission entity but leaves the rest. If i remove the buildCAS switch nothing relating to cas is added.

My Question is thus, how do i add just the single IPermission entity that I have specified in my code (sp object model)??

Many thanks