SharePoint 2010 Runtime Error

 

Server Error in '/' Application.

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
  <system.web>
    <customErrors mode="Off"/>
  </system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
  <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
  </system.web>
</configuration>
Resolving solution:

This is not so friendly for the Developer or the Administrator too. This is the common form of error that is seen in Sharepoint.

Even If we try to view the error from

Administrative Tools --> Event Viewer -->Windows Folder --> Application Logs.

We get some sort of the error and message defining the cause of the error. This message is not so often explanatory.So we need to need to take few actions to find out the actual cause of the error.

The earlier versions of Sharepoint showed the errors when we turned the Custom Error mode to "On". CallStack="True" and debug="true". But now the case has changed for Sharepoint 2010. Sharepoint 2010 has 3 web.config stored in 3 different locations:-

 

  1. Stored at inetpub\wwwroot\wss\Virtual directories folder\[Central Admin PortNo]\web.config
  2. Stored at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\ADMIN\web.config
  3. Stored at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\Layouts\web.config

 

They have 2 terms in common :- This has to be changed in all the 3 files.

Then do an IISRESET.

This will show the actual Error.

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章