Kentico 7 > Kentico 8.. "ValidationHelper' does not exist in the current context"

Ipswitch Web asked on September 26, 2014 20:28

Hi there,

Along with some Transformation errors after upgrading from Kentico 7 to 8.. I see most of my custom Web Parts won't load. The following error is in the Event Log:

    Message: c:\inetpub\kenticodev\www\CMS\IPSComponents\CMSWebParts\Pages\Widget3FeaturedResource.ascx.cs(26): error CS0103: The name 'ValidationHelper' does not exist in the current context

and is the case for all the custom Web Parts.. anyone see this before? Thanks.

Correct Answer

Brenden Kehren answered on September 27, 2014 16:32

Check out the List of API Changes from 7-8. Then search for ValidationHelper. You'll find it is now used in a different namespace CMS.Helpers.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Ipswitch Web answered on September 26, 2014 20:30

Stack Trace: 

at System.Web.Compilation.BuildManager.PostProcessFoundBuildResult(BuildResult result, Boolean keyFromVPP, VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at CMS.ExtendedControls.ControlDefinition.Load(Page page) at CMS.ExtendedControls.ControlsExtensions.LoadUserControl(Page page, ControlDefinition control) at CMS.PortalControls.CMSWebPartZone.LoadWebPart(Control container, CMSWebPartZone zone, WebPartInstance part, Boolean reloadData, Boolean isVariant)

0 votesVote for this answer Mark as a Correct answer

Ipswitch Web answered on September 30, 2014 17:42 (last edited on September 30, 2014 17:42)

Thanks Brenden - huge help!

0 votesVote for this answer Mark as a Correct answer

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