Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In my current project, the team uses BIN deployment instead of the standard GAC deployment. The application is just a custom application using NHibernate as the ORM framework. I know thats not a good practice. BU I would like to hear your expert opinion on why it is not a good idea to do BIN deployment> Thank you for your valuable time.

share|improve this question

migrated from stackoverflow.com Apr 4 '12 at 22:03

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Paul Beck has a good blog post about this: http://blog.sharepointsite.co.uk/2010/07/deploying-to-gac-vs-bin-folder-in-sp.html

My general rule is: Deploy my custom code to the GAC except if it's not trusted i.e. 3rd party code or there is a business reason/policy not to. It makes dev easier but is not ideal in that best practice decitates that you should apply the minimal levels of security permissions to your code.

share|improve this answer
1  
Best practice says that the BIN is better from a security POV, not the GAC. From that article "best practice decitates that you should apply the minimal levels of security permissions to your code." Also see msdn.microsoft.com/en-us/library/cc768621.aspx –  Ryan Apr 5 '12 at 10:22
    
Thanks for your comment. –  Kumanan Apr 28 '12 at 23:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.