Error loading web part on the Users application

jeff McDaniel asked on May 11, 2017 19:12

Hello everyone,

I recently started seeing an error when visiting the Users application on my Kentico 10.0.7 install. This error appears when I go to the users application. There is an error message that appears at the top.

[Error loading the WebPart 'SmartTipPlaceholder' of type 'SmartTipPlaceholder']

I have never seen the SmartTipPlaceholder webpart. It doesnt contain any custom code, and is the same code that Kentico installed. The event log error isn't very descriptive, which makes me think something internal with Kentico broke.

`Message: Value cannot be null. Parameter name: type

Exception type: System.ArgumentNullException Stack trace: at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at CMS.Base.Web.UI.ControlDefinition.Load(Page page) at CMS.Base.Web.UI.ControlsExtensions.LoadUserControl(Page page, ControlDefinition control) at CMS.PortalEngine.Web.UI.CMSWebPartZone.LoadWebPart(Control container, CMSWebPartZone zone, WebPartInstance part, Boolean reloadData, Boolean isVariant)`

Has anyone ever dealt with an error like this? Where would be a good place for me to start troubleshooting this error? I'm open to any suggestions and will appreciate any help you all may have to offer.

Thanks Jeff

Correct Answer

Trevor Fayas answered on May 11, 2017 19:30

Just ran into this on an upgrade, the upgrade seems to miss this webpart+file.

If you do a fresh Kentico 10 install, the file is in the /CMS/CMSAdminControls/Controls/UIControls/SmartTipPLaceholder

I have an export, if you want just email me at tfayas@hbs.net and i'll shoot you the zip file i sent my buddy who ran into it. Otherwise just install a fresh Kentico 10, then Site > Export and select the SmartTipPlaceholder, and then import it into your site.

3 votesVote for this answer Unmark Correct answer

Recent Answers


jeff McDaniel answered on May 11, 2017 21:08

Hi Trevor,

Thanks for the response. Luckily I had a fresh Kentico 10 install and imported the web part. That fixed my problem.

Thanks for your help! Really great catch, that was not an easy error to debug.

Jeff.

0 votesVote for this answer Mark as a Correct answer

Sean Wright answered on May 18, 2017 16:26

I'm having the same issue as above after upgrading from Kentico 7.0.66 to 10.0.

In my fresh install of Kentico 10, this file is located in ~/CMSModules/AdminControls/Controls/UIControls/SmartTipPlaceholder.ascx.

Are you both sure that your file is at the path you specified?

When I go to the Licenses module in the /Admin dashboard I get an error [Error loading the WebPart 'SmartTipPlaceholder' of type 'SmartTipPlaceholder'] displayed on the page above the list of licenses.

The EventLog shows an error

EventUrl: /CMSModules/AdminControls/Pages/UIPage.aspx?displaytitle=false&elementguid=...

Message: Value cannot be null.
Parameter name: type

Exception type: System.ArgumentNullException
Stack trace: 
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at CMS.Base.Web.UI.ControlDefinition.Load(Page page)
at CMS.PortalEngine.Web.UI.CMSWebPartZone.LoadWebPart(Control container, CMSWebPartZone zone, WebPartInstance part, Boolean reloadData, Boolean isVariant)
0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on May 18, 2017 16:29

Not sure if anything changed from doing one starting in 7, wouldn't imagine. But yeah, our file was in the CMSAdminControl, if yours is different then that is odd indeed!

0 votesVote for this answer Mark as a Correct answer

Sean Wright answered on May 18, 2017 17:23 (last edited on May 18, 2017 18:56)

I just uninstalled the Kentico 10 KIM application, redownloaded from the client portal, reinstalled the KIM and created a new Kentico 10 web application project from the KIM.

The /CMS/CMSAdmincontrols/ folder doesn't contain a Controls subfolder and it doesn't contain SmartTipPlaceholder.ascx at any depth.

There is however a control located at the path I mentioned previously /CMS/CMSModules/AdminControls/Controls/UIControls/SmartTipPlaceholder.ascx

I trying to understand how we could be generating different fresh installs of Kentico 10 from the same KIM application.

Edit--

I tried copying the control into the path you specified above and re-built/re-ran the site. I still get the same error in the Licenses module stating the web part could not be loaded.

Edit 2--

I re-read the above answers and saw I was missing the export/import step, which I did and now the error is gone.

Thanks!

0 votesVote for this answer Mark as a Correct answer

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