Step Bi Step
Posts Tagged RemoteOnly
Turn on detailed error messages in SharePoint 2007 /2010
Posted by Rajanihanth in SharePoint 2007, SharePoint 2010 on March 15, 2012
This is not really new but currently I am working on some customized web parts, so I need to turn on/off the detailed error messages when I need to fix some hectic problems on my development environment. There are many posts regarding this, but I wanted to keep my own post for my future references. đ
Normally SharePoint shows custom error messages to the users such as âAn unexpected error has occurredâ but this is not going to help, so we need to know the detailed ASP.NET error message to fix the problem. Here are the steps to turn off custom error messages.
Step 1: Go to the SharePoint host server and navigate to the Virtual Directories folder. Normally this is available in this path “C:\Inetpub\wwwroot\wss\VirtualDirectories”
Step 2: Find the web.config and get the backup for the safety purpose
Step 3: Open the web.config file using Visual Studio OR Notepad
Step 4: Find the âCallStackâ and change the value to âtrueâ instead of âfalseâ
Step 5: Find the âCustomErrorsâ and change the value to âOffâ instead of âOnâ
Step 6: Save and close the web.config, refresh the page then you will get the detailed (wired) error message. Time to fix this huh? đ
Error message before turning on:
Error message after turning on:
MSDN reference shows the âCustomErrorsâ values can be one of these:
Value | Description |
On | Specifies that custom errors are enabled. The custom errors are shown to the remote clients and to the local host. |
Off | Specifies that custom errors are disabled. The detailed ASP.NET errors are shown to the remote clients and to the local host. |
RemoteOnly | Specifies that custom errors are shown only to the remote clients, and that ASP.NET errors are shown to the local host. |
If you want, you can also set the âCustomErrorsâ value to âRemoteOnlyâ to show custom errors only to the remote clients.
R./
References:
1. http://davidkvas.blogspot.com/2011/05/turning-on-detailed-error-messages-in.html
2. http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx
ASP.NET, CallStack, CustomErrors, error messages, RemoteOnly, SharePoint 2007, SharePoint 2010, Turn on, Virtual Directories
Recent Posts
- TF255507: The security identifier (SID) for the following SQL Server login conflicts with a specified domain or workgroup account
- Installing Visual Studio Team Foundation Server 2010-Basic Configuration Step By Step
- The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.
- 2012 in Review!
- Getting started with Windows 8 Metro Style Application using C# – Visual Studio 2012
Categories
- .Net (23)
- Active Directory (4)
- ASP.Net (1)
- BDC (5)
- C# (5)
- Client Object model (3)
- Crystal Reports (1)
- DirectoryServices (3)
- Excel Services (3)
- GAC (1)
- InfoPath 2007 (5)
- InfoPath 2010 (4)
- MetaData (1)
- SharePoint 2007 (19)
- SharePoint 2010 (10)
- Silverlight (2)
- SQL Server (9)
- SSRS (3)
- STSADM (2)
- Tech Tips-.Net (4)
- Tech Tips-SharePoint (1)
- Tech Tips-SQL (2)
- TFS (3)
- TFS 2010 (3)
- TFS 2012 (1)
- Uncategorized (1)
- VB.Net (1)
- Versus (vs) (2)
- Visual Studio 2012 (3)
- VSTA (3)
- Webpart (8)
- Windows 8 (3)
- WSP Builder (4)
- XAML (1)
Certifications
Labels
.Net Active Directory BDC C# Client Object model Crystal Reports DirectoryServices Excel Services GAC InfoPath 2007 InfoPath 2010 MetaData SharePoint 2007 SharePoint 2010 Silverlight SQL Server SSRS STSADM Tech Tips-.Net Tech Tips-SharePoint Tech Tips-SQL TFS TFS 2010 Uncategorized Versus (vs) Visual Studio 2012 VSTA Webpart Windows 8 WSP BuilderCalendar
April 2023 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30