Copied to clipboard

Flag this post as spam?

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


  • John Bergman 483 posts 1132 karma points
    Jan 11, 2017 @ 03:53
    John Bergman
    1

    Unable to Log into backoffice - greeted with a white screen, log shows invalid cast exception

    Last night a Windows 10 Update came through, I am not sure if this is related to that, or if something else has gone wrong. (I spent about 11 hours configuring document types and things yesterday).

    Anyway, when I log into the back office, I get the login page, and then after clicking the login button, I am left with a white page.

    Below is the error I am receiving, it is basically this:

    System.InvalidCastException: Unable to cast object of type 'System.Web.Caching.AspNetCache' to type 'System.Collections.IEnumerable'.

    Anyone have any ideas what this is, or even how to troubleshoot this further?

    -- Here is the entire stack trace

    
     2017-01-10 21:28:50,902 [P25712/D3/T11] INFO  Umbraco.Core.Security.BackOfficeSignInManager - Event Id: 0, state: Login attempt succeeded for username [email protected] from IP address ::1
     2017-01-10 21:28:50,904 [P25712/D3/T11] INFO  Umbraco.Core.Security.BackOfficeSignInManager - Event Id: 0, state: User: [email protected] logged in from IP address ::1
     2017-01-10 21:28:51,015 [P25712/D3/T17] INFO  Umbraco.Core.PluginManager - Starting resolution types of Umbraco.Web.Trees.TreeController
     2017-01-10 21:28:51,016 [P25712/D3/T17] INFO  Umbraco.Core.PluginManager - Completed resolution of types of Umbraco.Web.Trees.TreeController, found 0 (took 0ms)
     2017-01-10 21:28:51,017 [P25712/D3/T17] INFO  Proteus.Package.LinkedContent.Controllers.LinkedContentApiController - Api Service Added
     2017-01-10 21:28:51,040 [P25712/D3/T17] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'uCommentator Settings' with Id '1128' has been published.
     2017-01-10 21:28:51,155 [P25712/D3/T17] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
    System.InvalidCastException: Unable to cast object of type 'System.Web.Caching.AspNetCache' to type 'System.Collections.IEnumerable'.
       at System.Web.Caching.Cache.System.Collections.IEnumerable.GetEnumerator()
       at System.Linq.Enumerable.
  • John Bergman 483 posts 1132 karma points
    Jan 11, 2017 @ 04:22
    John Bergman
    103

    OK, I reverted the windows 10 update, and the site started working again.

    Just a friendly heads up in case anyone else runs into this.

    After receiving the most recent windows 10 preview build 15002, a couple of the development machines configured to receive the preview builds starting failing they were either pure ASP.NET MVC or Umbraco related development - they started failing during execution with this exception:

    System.InvalidCastException: Unable to cast object of type 'System.Web.Caching.AspNetCache' to type 'System.Collections.IEnumerable'.

    Looks like in accompanying ASP.NET bits, there is a breaking change currently.

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Jan 13, 2017 @ 16:58
    Sebastiaan Janssen
    0

    Today's update 15007 still has the same problem on both IIS and IISExpress for me.

  • John Bergman 483 posts 1132 karma points
    Jan 14, 2017 @ 04:58
    John Bergman
    0

    I have corresponded with Microsoft, they are aware of the issue, can reproduce it and should have a fix soon hopefully. When I hear it is included in a build, I will post back here.

  • Bruce 17 posts 82 karma points
    Jan 20, 2017 @ 08:34
    Bruce
    0

    I get this issue on Build 15007 too but in a different place. I can log in but if I attempt to alter a member type then I hit this problem. I might have to fire up a VM to continue development until this is resolved. Oddly, on build 15002 it was only IIS that was affected for me, IISExpress was fine. Now it's affecting both.

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Jan 20, 2017 @ 09:03
    Sebastiaan Janssen
    0

    I just rolled back the Windows Update, it is a 5 minute process, was surprisingly easy. I did quickly have to switch to slow ring and I halted updates for 7 days as it immediately downloaded 15007 again:

    enter image description here

    enter image description here

    enter image description here

  • Bruce 17 posts 82 karma points
    Jan 20, 2017 @ 09:07
    Bruce
    0

    Hah, yes, I did this when the bug hit 15002 but it updated itself to 15007 within hours even though I'd switched to Slow Ring :) I think the changes are quite slow to take effect. It's rather annoying that the Insider program is a one way street, once you are on it you can't get off it without reinstalling Windows. Not a big deal though, that's what VMs are there for :)

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Jan 20, 2017 @ 09:15
    Sebastiaan Janssen
    0

    Yeah, took a while to stick, had to revert and then quickly go to Slow ring before the download completed!

    Looks like 15014 is out, I'll give it a go! https://www.thurrott.com/windows/windows-10/89192/window-10-build-15014-insiders-additional-new-features

  • Mike Chambers 635 posts 1252 karma points c-trib
    Jan 20, 2017 @ 23:41
    Mike Chambers
    0

    15014 didn't fix it for me, still same error.

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Jan 21, 2017 @ 09:27
    Sebastiaan Janssen
    0

    Yup, same here!

  • Bruce 17 posts 82 karma points
    Jan 24, 2017 @ 15:22
    Bruce
    0

    Ditto. I still get the same error whenever I try to save things in the admin :( Leaves me in a limbo as the newest version of Windows 10 has some very nice high DPI improvements but Umbraco just doesn't work properly in it.

    So is this an unintentional breaking change from the Windows Team that they going to sort out or is this an intentional change on their behalf that will require Umbraco to be updated before this insider build finds its way onto all Windows 10 machines?

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Jan 25, 2017 @ 00:02
    Sebastiaan Janssen
    0

    It's a regression bug in ASP.NET, should be fixed at some point.. I'll ask for an update.

  • John Bergman 483 posts 1132 karma points
    Jan 28, 2017 @ 06:08
    John Bergman
    0

    No Change in 15019 either.

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Jan 28, 2017 @ 09:34
    Sebastiaan Janssen
    0

    Cheers, I was about to install it to test! I hear the ASP.NET team have shipped a fix, no word on when it will be included in a build though.

  • John Bergman 483 posts 1132 karma points
    Jan 28, 2017 @ 16:59
    John Bergman
    0

    Not sure about when, but I can confirm that the fix they have does correct the issue.

  • Bruce 17 posts 82 karma points
    Jan 28, 2017 @ 17:21
    Bruce
    0

    Is this a way to acquire this fix in the interim? It's painful developing with this bug :(

  • John Bergman 483 posts 1132 karma points
    Jan 28, 2017 @ 17:37
    John Bergman
    0

    I'll ask.

  • Bruce 17 posts 82 karma points
    Jan 28, 2017 @ 17:42
    Bruce
    0

    You're a star, thanks :)

  • Anders Borum 2 posts 72 karma points
    Jan 30, 2017 @ 17:51
    Anders Borum
    0

    Issue is still present on build 15019rsprelease. Would like to see a hotfix from Microsoft on this issue.

    And thanks for posting this. Saved some hours :)

  • John Bergman 483 posts 1132 karma points
    Jan 31, 2017 @ 06:00
    John Bergman
    0

    Looks like it will be in the next update after Wednesday.

  • Anders Borum 2 posts 72 karma points
    Feb 02, 2017 @ 12:18
    Anders Borum
    0

    Windows 10 Insider Preview 15025 (rs_prerelease) is out. Curious if any of you have upgraded and can verify whether it fixes the issue?

    I'll upgrade later today and get back with a response, unless somebody beats me to it.

  • John Bergman 483 posts 1132 karma points
    Feb 02, 2017 @ 15:58
    John Bergman
    0

    Looks like it isn't included in 15025 :-(

  • Bruce 17 posts 82 karma points
    Feb 02, 2017 @ 19:42
    Bruce
    0

    Damn, this bug is becoming a right pain in the backside :(

  • John Bergman 483 posts 1132 karma points
    Feb 09, 2017 @ 16:39
    John Bergman
    0

    Build 15031 has the fix in it :-)

  • Sebastiaan Janssen 5044 posts 15475 karma points MVP admin hq
    Feb 09, 2017 @ 19:02
    Sebastiaan Janssen
    0

    I can confirm, it's all working again!

Please Sign in or register to post replies

Write your reply to:

Draft