Deploying a SharePoint Receiver Assembly in a BIN Web Application

Is it possible to successfully implement an assembly containing event handlers for a custom SharePoint list function (thus assembly Microsoft.SharePoint-specific classes ) in the web application buffer instead of the GAC?

The ability to do this is certainly present in the XML markup in my manifest.xml file. However, I saw several links in which deploying CAS policies for the assembly is mandatory with a little instruction on how to successfully achieve this for the assembly, which requires privileges, such as access to the SharePoint object model. I also saw a discussion that the PAC is almost necessary due to problems / issues with CAS.

I was able to actually deploy the assembly to a folder. However, security concerns were a big hurdle. The only way I was able to run my build (instead of just an error with exceptions) was to increase the trust level of web.config to <trust level="Full" originUrl="">which it would not fly in my environment. I hope to verify that what I am trying to do is possible before I continue to struggle with CAS.

If possible, if someone has guidance or resources that would help me modify my function to deploy event handlers this way, I would appreciate it.

+3
source share
3 answers

web.config - . CAS WSP, , web.config.

-Oisin

+1

- , , , CAS . .

, . , CAS. , , .

, , GAC "", .

+1

, BIN -.

SharePoint 2010, , MOSS 2007 ( , ).

, SharePoint System.Reflection.Assembly.Load() . Load() , , .

+1

Source: https://habr.com/ru/post/1725628/


All Articles