• 修改Web.config文件,原文初始情况如下:

<compilation batch="false" debug="false">

      <assemblies>

         <add assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />

     </assemblies>

增加2项:

  <add assembly="Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" />

  <add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

如果启用了AD对象再增加:

   <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

如果启用的AJAX功能:

  <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

  • 给出个例子,如下在MOSS中的WebPart中集成UserProfile
    在MOSS的WebPart中使用UserProfile注意事项l 如下在MOSS中的WebPart中集成UserProfile
    在MOSS的WebPart中使用UserProfile注意事项             
    using (SPSite site = new SPSite("http://" + Environment.MachineName ))

相关文章:

  • 2021-07-31
  • 2022-01-10
  • 2022-12-23
  • 2021-09-15
  • 2022-02-10
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-01-03
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案