开发者

AllowPartiallyTrustedCallers

I was creating a new sharepoint webpart in VS2010. After publishing the webpart and trying to access it. i was getting following error. That assembly does not allow partially trusted callers. after adding the following assembly level attribute the issue is rectified. [assembly: AllowPartiallyTrustedCallers()] I coudn't get the signifi开发者_高级运维cance of the attribute. Can anyone explain about the attribute.


The .NET framework prevents assemblies running in partial trust to call assemblies with full trust in order to prevent luring attacks. The AllowPartiallyTrustedCallers attribute indicates that you wish to override this security check for the given assembly.

A more detailed description can be found here:

http://blogs.msdn.com/b/shawnfa/archive/2005/02/04/367390.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜