1.VS2005新建Web应用项目。
2.在项目属性-》签名-》为程序强签名。
打开VS2005命令提示;sn -k test.snk 建立密钥;sn -t [***].dll 查看强名称;
3.copy dll 到MOSS 站点,上传aspx页面到MOSS 或者 用SPD新建页面copy aspx ;
4.设置MOSS 站点web.config。
在<SafeControls>中添加
<SafeControl Assembly="[***], Version=1.0.0.0, Culture=neutral, PublicKeyToken=8a0b08a45cc75bc0" Namespace="OASSO" TypeName="*" Safe="True" />
在 <PageParserPaths> 中添加
<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
在<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">中设置enableSessionState="true"