Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kieron McIntyre 116 posts 359 karma points
    Jun 10, 2013 @ 15:57
    Kieron McIntyre
    0

    NullReference exception on umbraco.controls.ContentTypeControlNew.IconClassToIconFileName()

    I have just started getting NullReference exeptions from all the Document Type screens in the Umbraco v6.1.1:

    NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.controls.ContentTypeControlNew.IconClassToIconFileName(String iconClass) +4
       System.Linq.WhereSelectListIterator`2.MoveNext() +99
       System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +460
       System.Linq.Enumerable.ToList(IEnumerable`1 source) +54
       umbraco.controls.ContentTypeControlNew.SetupInfoPane() +628
       umbraco.controls.ContentTypeControlNew.OnInit(EventArgs e) +31
       System.Web.UI.Control.InitRecursive(Control namingContainer) +380
       System.Web.UI.Control.InitRecursive(Control namingContainer) +183
       System.Web.UI.Control.InitRecursive(Control namingContainer) +183
       System.Web.UI.Control.InitRecursive(Control namingContainer) +183
       System.Web.UI.Control.InitRecursive(Control namingContainer) +183
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1621

     

    I have installed FamFamFam icons, and initially everything worked initially. It seems that assigning a particular icon has caused this, although I couldn't which, maybe sitemap.png

    Any ideas?

  • Jason Capriotti 1 post 42 karma points
    Jun 12, 2013 @ 00:52
    Jason Capriotti
    101

    I restarted IIS (or in my case, IIS Express) and it worked for me.

     

    Jason

  • Kieron McIntyre 116 posts 359 karma points
    Jun 12, 2013 @ 09:44
    Kieron McIntyre
    0

    Yes, that's how I resolved it too, but I'm concerned that it should be an issue in the first place. In a live environment I couldn't just restart the application pool as a solution :)

  • Matt Barlow | jacker.io 164 posts 740 karma points c-trib
    Jun 25, 2013 @ 12:38
    Matt Barlow | jacker.io
    1

    I just came across this error too, restarting IIS also fixed this for me.

    (Umbraco 4.11.7) + FamFamFam icon package installed.

    IIS 7.5 is the Web Server (IIS)

  • Matt Frost 1 post 21 karma points
    Jun 26, 2013 @ 17:30
    Matt Frost
    0

    I ran into same error when trying to create my very first document type (exciting stuff!).  Restarting IIS Express worked for me too.  Im also running Web Matrix, so I restarted the website in that as well.

Please Sign in or register to post replies

Write your reply to:

Draft