Wednesday 4 June 2008

Disabeling Sharepoint's default errors


[TR]
Moss'ta geliştirme yapmaya başladığım ilk zamanlarda en çok sorun yaşadığım şeylerden biri sistemdeki hatanın ne olduğunu anlayamamam oluyordu. Sistem"Unexpected error has occured" gibi bir uyarı verip mistik bir ortam oluşturmaya çalışıyordu.
Ufak bir araştırmadan sonra bu hataları kapatıp onun yerine nasıl normal .net hatalarının alınabileceğini öğrendim. web.config dosyasındaki 3 satırı şu şekilde değiştirmek gerekiyor.
  • compilation batch="false" debug="true"
  • SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false"
  • customErrors mode="Off"

[ENG]
When I first started to make developments on sharepoint the biggest problem for me was seeing the error message of "Unexpected error has occured". Because I couldn't identifywhat causes that problem. After a quich research I learned how to disable default moss errors and get classic .Net errors instead of it. You need to change 3 lines at web.config file like that

  • compilation batch="false" debug="true"
  • SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false"
  • customErrors mode="Off"

No comments: