customerrors mode= on defaultredirect= mycustompage.htm / sharepoint

customerrors mode= on defaultredirect= mycustompage.htm

 Error Message:
Server Error in '/' Application.
-----------------------------
Runtime Error
<!-- Web.Config Configuration File --> 
<configuration>   
  <system.web>   
    <customErrors mode="Off"/>  
  </system.web>   
</configuration>   


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

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 
To Find Solution:

Open web.config file from
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS


Change the following in web.config and you will be able to see the detailed error.
<customErrors mode="Off"/>
 
Then it go to the error page.Refresh it.it will show detaild error.It will will be 
helpfull to solve the error.. 

Comments

Popular posts from this blog

Add content type to SharePoint List/Library using REST API

A type named 'SP.Data. could not be resolved by the model error

Upload Single/Multiple file by using the REST API and jQuery SharePoint 2013