Copied to clipboard

Flag this post as spam?

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


  • Pierre 16 posts 26 karma points
    Jun 30, 2009 @ 11:03
    Pierre
    0

    "Object reference not set..." suddely began without explanation

    Info:

  • Umbraco Version: 3.05
  • asp.net version: 2.0
  • Windows and iis version: windows 2003, IIS 6
  • Stacktrace: See below.
  • Error:

    Haven't been working with this site for quite some time and it has run like clockwork until now. When visiting the site, it throws:

    -------------------------------------------

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.cms.businesslogic.language.<>c__DisplayClass2.<.ctor>b__0() +186
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +213
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +121
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemRemovedCallback refreshAction, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +118
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +115
       umbraco.cms.businesslogic.language.Language..ctor(Int32 id) +356
       umbraco.cms.businesslogic.web.Domain.initDomain(Int32 id) +352
       umbraco.cms.businesslogic.web.Domain..ctor(Int32 Id) +47
       umbraco.cms.businesslogic.web.Domain.<GetDomains>b__0() +374
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +213
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +121
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, CacheItemRemovedCallback refreshAction, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +118
       umbraco.cms.businesslogic.cache.Cache.GetCacheItem(String cacheKey, Object syncLock, TimeSpan timeout, GetCacheItemDelegate`1 getCacheItem) +115
       umbraco.cms.businesslogic.web.Domain.GetDomains() +221
       umbraco.cms.businesslogic.web.Domain.GetDomain(String DomainName) +80
       umbraco.cms.businesslogic.web.Domain.Exists(String DomainName) +39
       umbraco.requestHandler.CreateXPathQuery(String url, Boolean checkDomain) +401
       umbraco.requestHandler..ctor(XmlDocument _umbracoContent, String url) +806
       umbraco.WebForm1.OnInit(EventArgs e) +1090
       System.Web.UI.Control.InitRecursive(Control namingContainer) +333
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
    

    ---------------------------------------

    And when logged in and browsing the content-tree, the same error is thrown inside the workarea when you click the nodes. I have tried restoring from an old backup, but that does not seem to work. Unfortunately I can't give a more detailed description since the error just "started to appear" without changes to the content or site.

Copy Link
  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jun 30, 2009 @ 11:49
    Ismail Mayat
    0

    Pierre,

    Is the website in its own app pool in IIS.  If not can you add it.  If it is in own app pool can you try restarting it see if that fixes the problem.  If it does then keep an eye on it just to ensure it does not go down again. Also can you ensure network service has appropriate permissions on umbraco root dir it may be that they have been lost?


    Regards

    Ismail

    Copy Link
  • Pierre 16 posts 26 karma points
    Jul 01, 2009 @ 10:08
    Pierre
    0

    I found the error, it had to do with the languages and managed hostnames. Somehow there was only two languages but the managed hostnames needed three, thus referenced wrongly. Fixed this in the database and the error disappeared.

    Copy Link
  • Please Sign in or register to post replies

    Write your reply to:

    Draft