[英]Deploy Web Part Into windows server 2008 R2
I have build one employee directory webpart that gets necessary information of user from sharepoint site. 我已经构建了一个员工目录Web部件,该部件从Sharepoint站点获取用户的必要信息。 i have deployed in my testing server "Windows Server 2003 and Moss2007" and it's work fine.
我已经在测试服务器“ Windows Server 2003和Moss2007”中部署了它,并且工作正常。
When i tried to deploy on my production server "Windows Server 2008 R2 with Moss2007". 当我尝试在生产服务器上部署“带有Moss2007的Windows Server 2008 R2”时。 It give me security error.
它给了我安全错误。
Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed." 请求类型为“ Microsoft.SharePoint.Security.SharePointPermission,Microsoft.SharePoint.Security,Version = 12.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c”的权限失败。”
I have also created security policy file and added reference to web.config. 我还创建了安全策略文件,并添加了对web.config的引用。 Still i getting same error please help on this.
我仍然遇到相同的错误,请对此提供帮助。 i am stuck here and not able to find any way to get out of this.
我被困在这里,无法找到任何摆脱困境的方法。
Thanks in advance. 提前致谢。
Do you install your DLL into GAC? 您是否将DLL安装到GAC中? You must either install it into GAC (the solution does it for you if you specify the assembly location as GAC) or provide a custom CAS policy and register that policy in the web.config file.
您必须将其安装到GAC中(如果将程序集位置指定为GAC,则解决方案将为您完成),或者提供自定义CAS策略并将该策略注册在web.config文件中。 We usually prefer the first way, unless a customer specifically requires a custom CAS policy.
除非客户特别要求自定义CAS策略,否则我们通常更喜欢第一种方法。 This is much easier and I really doubt the security-wise effectiveness of the custom policy approach (unless your IT department actually goes over your code and examines what it can and cannot do, haven't found a department that would know how to do that)
这要容易得多,我真的很怀疑自定义策略方法在安全性方面的有效性(除非您的IT部门实际上检查了您的代码并检查了它可以做什么和不能做什么,没有找到一个知道如何做到这一点的部门)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.