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

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 like following SharePoint tutorials:

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>