Wednesday, limit L 6, 2011 at | post a comment
SharePoint "Unknown error": How to show all the details in batch automation /. net programmability, exportzen, filterzen, moss 2007, peoplezen, printzen, roxority, Sharepoint 2010, Sharepoint 2013, software development, uploadzen, WSS 3.0, web development, web parts
We sometimes receive a support request that goes something like this :"When I attempt to do X, Sharepoint says unknown error"Or ,"An unexpected error has occurred", Or sinceSharePoint 1, 2013The (truly stunning) New wording ,"We don't know what happened. But something went wrong". Of course there is no way we can fix an" Unknown error ". Yet these errors are not unknown, by default SharePoint simply does not show their inner details (uselessly so ).
So if you do encounterUnknown error(This has become spectacularly rare fortunately as our software has grown ever more stable over the last 2 years), then we need youTurn on detailed error messages in your SharePointEnvironment. this is easy to do and absolutely non-dangerous, plus typically you will be reporting your issue from your QA, test or Dev server rather than production. here is what we need you to do-in a multi-server farm environment, the following steps will have to be written medOn all Web Front-end servers PlusThe server hosting central administration.
- Login to your Sharepoint Server's windows. You will need access to its file system.
- UnderC: \ Inetpub \ wwwroot \ WSS \ virtualdirectories \ 80(Plus AllOther numeric directories underC: \ Inetpub \ wwwroot \ WSS \ virtualdirectories \!) OpenWeb. configFile in notepad or any other plain-text editor (no rich-text editors such as WordPad or word ).
- Use the search feature (CTRL + F) to find the firstCallstackAttribute in Web. config. Make sure it is setCallstack = "true".
- From here, use the search feature (CTRL + F) to find the nextCustomerrorsElement in Web. config. Make sure itsModeAttribute is setOff:<Customerrors mode = "off"/>.
- From here, use the search feature (CTRL + F) to find the nextCompilationElement in Web. config. Make sure itsDebugAttribute is setTrue:<Compilation DEBUG = "true"/>.
- UnderSharePoint 2010 only:Perform the above 3 stepsAlsoForC: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 14 \ config \ Web. config!
What is the error message displayed in Share Point 2013?