在sharepoint2013中我们需要修改以下三处的web.config,以显示错误信息

1, C:\inetpub\wwwroot\wss\VirtualDirectories\端口号\web.config

1>将customErrors元素中的mode将成Off

<customErrors mode="Off" />

2>将SafeMode中的CallStack改成True

<SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="250" AllowPageLevelTrace="false">
      <PageParserPaths>
      </PageParserPaths>
</SafeMode>

3>,将compliation 中的debug改成 true

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

 

2  C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\ADMIN\web.config

将customErrors 中的mode改成Off

<customErrors mode="Off" />

3  C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\web.config

将customErrors 中的mode改成Off

<compilation batch="false" />

 

相关文章:

  • 2021-10-04
  • 2021-09-11
  • 2021-07-06
  • 2021-12-27
  • 2021-09-14
  • 2021-04-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-20
  • 2022-01-09
  • 2022-01-22
  • 2021-05-31
  • 2021-12-22
  • 2022-01-21
相关资源
相似解决方案