刘政道 - 应用程序框架

《31天学会CRM项目开发(C#编程入门及项目实战)》作者,IT经理,程序员
  博客园  :: 新随笔  :: 联系 :: 管理

在sharepoint中部署aspx应当注意的问题

Posted on 2008-08-26 17:06  刘政道  阅读(335)  评论(0编辑  收藏  举报

 

 

 

新建一个文档库Docs

将程序文件都放到Docs

 

配置Web.Config

 

设置允许执行aspx文件

    <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">

      <PageParserPaths>

        <PageParserPath VirtualPath="/Documents/menu.aspx" CompilationMode="Always" AllowServerSideScript="true" />

     </PageParserPaths>

    </SafeMode>

注册dll

    <SafeControls>

     <SafeControl Assembly="ZedGraph.Web, Version=5.1.2.880, Culture=neutral, PublicKeyToken=null" Namespace="ZedGraph.Web" TypeName="*" Safe="True" AllowRemoteDesigner="True" />

    </SafeControls>

或将dll文件拷到C:"Inetpub"wwwroot"wss"VirtualDirectories"80"bin

 

设置WebPart权限级别

    <trust level="Full" originUrl="" />

表示完全信任

 

配置ZedGraph.Web.DLL时要注意

C:"Inetpub"wwwroot"wss"VirtualDirectories"80 新建 ZedGraphImages 文件夹,并设置安全为Everyone可完全控制。

 

 

aspx中包含其它aspx的方法

    <% System.Web.HttpContext.Current.Server.Execute("menu.aspx");%>