Safe mode did not start successfully. Microsoft.SharePoint.WebPartPages.WebPartPageUserException: SafeControl expected

Display more then three views in SharePoint 2013

Recently I got the below error while opening a SharePoint site, the error was coming as:

Safe mode did not start successfully. Microsoft.SharePoint.WebPartPages.WebPartPageUserException: SafeControl expected
at Microsoft.SharePoint.ApplicationRuntime.SafeControlsConfigurationHandler.ParseConfigNode(XmlNode child)
at Microsoft.SharePoint.ApplicationRuntime.SafeControlsConfigurationHandler.CreateSafeControlLists(XmlNode section, SafeControlsContainer parentContainer, Boolean includeUserControlEntries)
at Microsoft.SharePoint.ApplicationRuntime.SafeControlsConfigurationHandler.Create(Object parent, Object configContext, XmlNode section)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)


Solution:
This error comes because I did a silly mistake in the web.config file.

By mistakenly I put some other tag before <safe control end tag. So this was causing the issue. Once I remove it the error did not come.


You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →