How to debug while unexpected error occurs on sharepoint


When we are developing above sharepoint platform, some error occurs is inevitable, but we can find the cause step by step.

1. turn on debug function on sharepoint to show the real error message.


To enable detailed error messages in the browser do the following in web.config 

<SafeMode MaxControls="200" CallStack="false"… />  change to  <SafeMode MaxControls="200" CallStack="true" … />

The customError setting must be changed to "Off":     <customErrors mode="Off"/>

After these changes, the "An unexpected error has occurred" should no longer be shown and you should a standard ASP.NET error page

2. find the error event ID in application, and search that on google, in most cases, we can find solution.

for example, my error event ID is 5439, and message is rel="File-List" href="file:///C:%5CUsers%5Cv-payu%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"> rel="themeData" href="file:///C:%5CUsers%5Cv-payu%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"> rel="colorSchemeMapping" href="file:///C:%5CUsers%5Cv-payu%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml">

There was an error in communicating with Excel Calculation Services http://svmrrdev05:56737/SSP - MSSORR/ExcelCalculationServer/ExcelService.asmx exception: The request failed with an empty response.

[Session: (null)

User: NORTHAMERICA/v-payu].

    after search, I find the solution.


rel="File-List" href="file:///C:%5CUsers%5Cv-payu%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"> rel="themeData" href="file:///C:%5CUsers%5Cv-payu%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"> rel="colorSchemeMapping" href="file:///C:%5CUsers%5Cv-payu%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml">

To work around this, some configuration on web.config for sharepoint are nessary to make excel service work smoothly.

 

Method: Find the following code snippet in web.config file, and change proxy autodetect = false

<system.net>
     <defaultProxy>
          <proxy autoDetect=”false” />
     </defaultProxy>
</system.net>

 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值