Error deleting Corporate Site

Brad Chapman asked on October 29, 2014 04:19

Hi there

I am getting the following error attempting to delete the corporate demo site. I have other sites created. I also get a similar error attempting to delete users created when that demo site was created.

Error deleting site:

Error deleting site: Message: Object reference not set to an instance of an object. Exception type: System.NullReferenceException Stack Trace: at CMS.DataEngine.BaseInfo.GetDependencyObjectType(ObjectDependency dep) at CMS.DataEngine.ObjectTypeInfo.LoadDependendentObjectTypes() at CMS.DataEngine.ObjectTypeInfo.get_DependentObjectTypes() at CMS.DataEngine.BaseInfo.GetRemoveDependenciesList(Boolean getAll, String baseWhere, String connStringContext, List1 processed) at CMS.DataEngine.BaseInfo.RemoveObjectDependenciesAuto(Boolean deleteAll, Boolean clearHashtables) at CMS.DataEngine.BaseInfo.RemoveObjectDependencies(Boolean deleteAll, Boolean clearHashtables) at CMS.DataEngine.AbstractInfo1.DeleteData() at CMS.DataEngine.AbstractInfoProvider2.DeleteInfo(TInfo info) at CMS.DataEngine.BaseInfo.Delete() at CMS.DocumentEngine.TreeNode.DeleteInternal() at CMS.DocumentEngine.TreeNode.Delete(Boolean useDocumentHelper) at CMS.DocumentEngine.DocumentHelper.DeleteDocument(DeleteDocumentSettings settings) at CMS.DocumentEngine.DocumentHelper.DeleteSiteTree(String siteName, TreeProvider tree, OnAfterDocumentDeletedEventHandler deleteCallback, String webRootFullPath) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important) at CMS.Base.AdvancedHandler2.RaiseBefore(TArgs e) at CMS.Base.AdvancedHandler2.RaiseBefore(TArgs e) at CMS.Base.AdvancedHandler2.StartEvent(TArgs e, Boolean allowEvent) at CMS.SiteProvider.SiteDeletionHandler.StartEvent(DeletionInfo deletionInfo, IUserInfo user, CMSActionContext context) at CMS.SiteProvider.SiteDeletionManager.DeleteSite(Object parameter)

Error deleting users:

Object reference not set to an instance of an object.

Any help would be great. This is my first forum post. I am trying this out as an alternative to logging support requests.

Cheers, Brad

Correct Answer

raj k answered on October 30, 2014 08:19

my answer is clear the cache and restart the application

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brad Chapman answered on October 29, 2014 04:34

Answered my own question. Site needed a rebuild.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 31, 2014 13:57

@Brad,

What type of install did you do with Kentico? Web site or web project?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.