title: Deploying SharePoint Event Receiver Assembly to Web Application BIN
body: <p>Is it possible to successfully deploy an assembly containing event handlers for a custom SharePoint list feature (thus, classes that depend on the <code>Microsoft.SharePoint</code> assembly) to a web application's bin instead of the GAC?</p>
  
  <p>The option to do so certainly appears to be present in the XML markup in my feature's manifest.xml file.  However, I've seen several references that deploying CAS policies for the assembly are a must with little instruction on how to successfully achieve this for an assembly that requires privileges like access to the SharePoint object model.  I've also seen discussion suggesting that the GAC is nearly a requirement because of difficulties/issues with CAS.  </p>
  
  <p>I have been able to actually deploy the assembly to the folder.  The security issues however, have been a big impediment.  The only way I've been able to get my assembly to run (instead of simply erroring out with exceptions) is by elevating the web.config's trust level to <code>&lt;trust level="Full" originUrl=""&gt;</code> which won't fly in my environment.  I'm hoping to verify that what I'm trying to do is possible before I continue to further wrestle with CAS.</p>
  
  <p>If this is possible, if anyone has guidance or resources that would assist me in modifying my feature to deploy my event handlers in this fashion, I'd appreciate it.</p>