Copied to clipboard

Flag this post as spam?

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


  • Craig100 1136 posts 2523 karma points c-trib
    Feb 08, 2015 @ 14:03
    Craig100
    0

    V7 sites started erroring after security update

    Upgraded all my sites successfully the other day with the new clientdependency.dll.  Couple of days later, the V7 ones are now sitting there with the following error:-

    Server Error in '/' Application.

    Root element is missing.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.Xml.XmlException: Root element is missing.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    [XmlException: Root element is missing.]
       System.Xml.XmlTextReaderImpl.Throw(Exception e) +69
       System.Xml.XmlTextReaderImpl.ParseDocumentContent() +5673818
       System.Xml.XmlTextReaderImpl.Read() +213
       System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) +44
       System.Xml.Linq.XDocument.Load(String uri, LoadOptions options) +58
       Umbraco.Core.Services.ApplicationTreeService.LoadXml(Action`1 callback, Boolean saveAfterCallback) +117
       Umbraco.Core.Services.ApplicationTreeService.<GetAppTrees>b__0() +86
       Umbraco.Core.Cache.<>c__DisplayClass9`1.<GetCacheItem>b__8() +10
       System.Lazy`1.CreateValue() +416
       System.Lazy`1.LazyInitValue() +152
       System.Lazy`1.get_Value() +75
       Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem, Nullable`1 timeout, Boolean isSliding, CacheItemPriority priority, CacheItemRemovedCallback removedCallback, CacheDependency dependency) +937
       Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func`1 getCacheItem) +111
       Umbraco.Core.Cache.CacheProviderExtensions.GetCacheItem(ICacheProvider provider, String cacheKey, Func`1 getCacheItem) +115
       Umbraco.Core.Services.ApplicationTreeService.GetAppTrees() +91
       Umbraco.Core.Services.ApplicationTreeService.GetByAlias(String treeAlias) +49
       Umbraco.Web.Trees.<>c__DisplayClasse.<ScanTrees>b__1(Tuple`2 x) +40
       System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +204
       System.Linq.Buffer`1..ctor(IEnumerable`1 source) +216
       System.Linq.Enumerable.ToArray(IEnumerable`1 source) +77
       Umbraco.Web.Trees.ApplicationTreeRegistrar.ScanTrees(ApplicationContext applicationContext) +298
       Umbraco.Web.Trees.ApplicationTreeRegistrar.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +9
       Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +37
       Umbraco.Core.CoreBootManager.<Complete>b__5(IApplicationEventHandler x) +19
       Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable`1 items, Action`1 action) +141
       Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete) +94
       Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete) +38
       Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +158
       Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e) +9
    
    [HttpException (0x80004005): Root element is missing.]
       System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9916613
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
    
    [HttpException (0x80004005): Root element is missing.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9930508
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212

    I've rebuilt both sites and reuploaded their dlls but the error doesn't change. Just wondering if there's a dll that needs to be set to "copy local" on my hosting. 

    Any advice appreciated.

    Craig

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Feb 08, 2015 @ 14:17
    Dennis Aaen
    100

    Hi Craig,

    From my research the root element is mssing happens when the files in the /config folder is empty, so try go make sure that these files not  are empty, And try to see this post https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/52627-Umbraco-7-%28Root-element-is-missing%29?p=1 and this issue on the issue tracker http://issues.umbraco.org/issue/U4-5126

    Hope this helps,

    /Dennis

  • Craig100 1136 posts 2523 karma points c-trib
    Feb 08, 2015 @ 14:29
    Craig100
    0

    Thanks Dennis, the config folders are populated. However, noted on one site that applications.config was 0 Bytes so reuploaded (so now 605 Bytes) and the site started working. On the other site it was trees.config that was 0 Bytes. Reuploaded (so now 6.4 KB) and the site started working.

    This is scary. Glad there's an issue raised for it.

    Thanks for pointing me in the right direction.

    Craig

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Feb 08, 2015 @ 14:39
    Dennis Aaen
    0

    Hi Craig,

    You are welcome. Happy that I could help you out.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft