#1, The SharePoint section of the web.config file
View Code
< configuration > < configSections > < sectionGroup name ="SharePoint" > < section name ="SafeControls" /> < section name ="RuntimeFilter" /> < section name ="WebPartLimits" /> < section name ="WebPartCache" /> < section name ="WebPartWorkItem" /> < section name ="WebPartControls" /> < section name ="SafeMode" /> < section name ="MergedActions" /> < section name ="PeoplePickerWildcards" /> < section name ="WorkflowServices" /> < section name ="BlobCache" /> < section name ="OutputCacheProfiles" /> < section name ="ObjectCache" /> </ sectionGroup > </ configSections > < SharePoint > < SafeMode /> < WebPartLimits /> < WebPartCache /> < WebPartControls /> < SafeControls /> < PeoplePickerWildcards /> < MergedActions /> < BlobCache /> < ObjectCache /> < OutputCacheProfiles /> < RuntimeFilter /> </ SharePoint > </ configuration >
#2, Modify Web.config file back from debug when deploying to Production:
< configuration > < SharePoint > < SafeMode CallStack ="false" /> </ SharePoint > < system.web > < customErrors mode ="On" /> < compilation debug ="false" /> </ system.web > </ configuration >