I got this error when setting form bacground of popupMaster to WHITE, I compiled the App and refreshed the pool and website too.
Server Error in '/' Application.
--------------------------------------------------------------------------------
[A]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.
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.InvalidCastException: [A]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.
Source Error:
Line 68: Cache.NoAbsoluteExpiration, new TimeSpan(1, 0, 0));
Line 69: } else {
Line 70: pageConfigurations = (Dictionary<string, PageConfig>)o;
Line 71: }
Line 72:
Source File: c:\AcrEStore_4.0\Web\Dynamic.aspx.cs Line: 70
Stack Trace:
[InvalidCastException: [A]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Dynamic+PageConfig]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.]
Dynamic.get_PageConfigurations() in c:\AcrEStore_4.0\Web\Dynamic.aspx.cs:70
Dynamic.Page_PreInit(Object sender, EventArgs e) in c:\AcrEStore_4.0\Web\Dynamic.aspx.cs:85
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Page.OnPreInit(EventArgs e) +8702878
DotShoppingCart.Commercial.Base.BasePage.OnPreInit(EventArgs e) +15
System.Web.UI.Page.PerformPreInit() +31
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282