简体   繁体   English

将Web部件部署到Windows Server 2008 R2中

[英]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.

相关问题 适用于SharePoint 2010的Windows Server 2008或2008 R2 SP1 - Windows server 2008 OR 2008 R2 SP1 for SharePoint 2010 Windows Server 2008 R2 上的 Windows 身份验证 (NTLM) 对于 Sharepoint 2010 是否安全? - Is Windows Authentication (NTLM) on Windows Server 2008 R2 secure for Sharepoint 2010? 是否可以在安装了 AD 角色的同一 Windows Server 2008 R2 机器上安装 SharePoint 2010 服务器? - Is it possible to install SharePoint 2010 Server on the same Windows Server 2008 R2 machine with AD role installed? 获取PowerView以与SQL Server 2008 R2上的现有多维数据集一起使用 - Get PowerView to work with existing cubes on SQL Server 2008 R2 Microsoft.ACE.OleDB.12.0 + Windows Server 2008 R2 +电子表格通过UNC路径访问SharePoint = :( - Microsoft.ACE.OleDB.12.0 + Windows Server 2008 R2 + Spreadsheet being accessed via UNC path into SharePoint = :( 如何在Windows Server 2012 R2上安装Sharepoint Server - How to install sharepoint server on windows server 2012 r2 steps 如何在SQL Server 2008 R2上使用Visual Studio 2010调试SharePoint存储过程? - How to debug SharePoint stored procedures with Visual Studio 2010 on SQL Server 2008 R2? SP中央管理员重新安装sql server 2008 r2后无法连接到配置数据库 - SP central admin Cannot connect to the configuration database after reinstalling sql server 2008 r2 将Web部件部署为功能 - Deploy Web part as a feature sql 2008 r2镜像超时已过期 - sql 2008 r2 mirroring timeout expired
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM