#1, The SharePoint section of the web.config file

View Code
<configuration>
  <configSections>
    <sectionGroup name="SharePoint">
      <section name="SafeControls" />
      <section name="RuntimeFilter" />
      <section name="WebPartLimits" />
      <section name="WebPartCache" />
      <section name="WebPartWorkItem" />
      <section name="WebPartControls" />
      <section name="SafeMode" />
      <section name="MergedActions" />
      <section name="PeoplePickerWildcards" />
      <section name="WorkflowServices" />
      <section name="BlobCache" />
      <section name="OutputCacheProfiles" />
      <section name="ObjectCache" />
    </sectionGroup>
  </configSections>
  <SharePoint>
    <SafeMode />
    <WebPartLimits />
    <WebPartCache />
    <WebPartControls />
    <SafeControls />
    <PeoplePickerWildcards />
    <MergedActions />
    <BlobCache />
    <ObjectCache />
    <OutputCacheProfiles />
    <RuntimeFilter />
  </SharePoint>
</configuration>

 

#2, Modify Web.config file back from debug when deploying to Production:

 

<configuration>
  <SharePoint>
    <SafeMode CallStack="false" />
  </SharePoint>
  <system.web>
    <customErrors mode="On" />
    <compilation debug="false" />
  </system.web>
</configuration>
posted on 2012-11-15 22:43  逝者如斯(乎)  阅读(141)  评论(0编辑  收藏  举报