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.
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.
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.
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.
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:
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 :)
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?
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
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.
Today's update 15007 still has the same problem on both IIS and IISExpress for me.
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.
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.
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:
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 :)
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
15014 didn't fix it for me, still same error.
Yup, same here!
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?
It's a regression bug in ASP.NET, should be fixed at some point.. I'll ask for an update.
No Change in 15019 either.
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.
Not sure about when, but I can confirm that the fix they have does correct the issue.
Is this a way to acquire this fix in the interim? It's painful developing with this bug :(
I'll ask.
You're a star, thanks :)
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 :)
Looks like it will be in the next update after Wednesday.
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.
Looks like it isn't included in 15025 :-(
Damn, this bug is becoming a right pain in the backside :(
Build 15031 has the fix in it :-)
I can confirm, it's all working again!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.