1

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.

2

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.

1
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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