R – Is Sharepoint local bin deployment possible

deploymentgacsharepoint

I’ve inherited a SharePoint solution where all the projects have strong names and are deployed to the GAC.

I find that its difficult working with projects that are signed, it slows down development, testing and makes debugging difficult.

So, is it possible that SharePoint projects, WebParts, Codebehinds etc be deployed to the local bin instead of the GAC? Is it considered bad practice to deploy to the local bin?

Best Answer

It is always recommanded to use the Bin directory over to GAC, for all the WebParts & Code Behinds. As that will restrict the Trust given to the code, GAC provides full trust to the code.

After deploying to the bin you can gain the required permission using CAS.

I recommend you to read the chapter Application Security of Inside Windows SharePoint Services 3.0 Book

Note: You will have to deploy your code Feature Handler, Timer Job etc to the GAC

Related Topic