An unexpected error has occurred

蹲街弑〆低调 提交于 2019-12-06 06:28:44

Unexpected error might be anything, You need to see what is the root cause of the Error,

  1. Open the Web.Config file of the IIS SharePoint WebSite
  2. Search for the CallStack and change it to CallStack="true"
  3. Search for the CustomError and change it to CustomError="Off"
  4. Browse the page you will get to know the actual issue that causes the error
  5. You yourself can rectify it , it might be as simple as missing dll

Try to watch the logfiles, set logging level to maximum to be sure you see what sharepoint says about your page.

To do that, if you have access to the server:

  • open SharePoint Central Admin
  • go to Operations tab, select "Diagnostic logging"
  • select category 'All' and change the trace log level to 'Verbose', save changes
  • reset IIS server (for the purpose of a clean experiment)
  • open \\server\c$\Program Files\Common Files\Microsoft Shared\web server extensions\12 logs and order by modification date
  • try to load your webpage in /_layouts folder, see the error again
  • open the newest logfile you can see and search for [MyCustomFolder] name

Then post the error message here.

Guilherme Ferreira

An unexpected error can have multiple reasons.

Go to C:\inetpub\wwwroot\wss\VirtualDirectories\80

Open Web.Config

Change

<SafeMode MaxControls=”200″ CallStack=”false”

to

<SafeMode MaxControls=”200″ CallStack=”true”

Turn off custom errors

<customErrors mode=”Off”/>

I know that is an old question but for me the fix was to stop and start again the SharePoint Web Application from IIS.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!