实现在web应用程序里有事件的页面添加到sharepoint里

1 对该web应用程序进行发布
2 对发布出来的bin文件夹里的.dll文件进行像web part一样的操作

找到moss site 的Web.config 文件
加入<SafeControl Assembly="try, Version=1.0.0.0, Culture=neutral, PublicKeyToken=36fa527584be3969" Namespace="try" TypeName="*" Safe="True" />,注意:TypeName只能为*号;
在 <PageParserPaths> </PageParserPaths>
节点下增加一个虚拟路径 <PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
  把 </siteMap>
    <trust level="Full" originUrl="" />
    <webParts>
    中的trust改为Full
3 把生成的程序集拷到moss site 的bin目录下;
4 当你要在Web 应用程序进行运行时,并不能把程序集直接生成到moss site 的bin目录下;而是要在它原来的目录下;
5 把发布出来的.aspx页面复制到moss的文件夹里,删除该页面的头源代码AutoEventWireup="true"
6 在moss里对该页面进行发布

原文地址:https://www.cnblogs.com/KingStar/p/1580745.html