Server Error in '/WEBSITES/RussianParentsNJ' Application.

[A]System.Collections.Generic.List`1[clsProvince] cannot be cast to [B]System.Collections.Generic.List`1[clsProvince]. 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.List`1[clsProvince] cannot be cast to [B]System.Collections.Generic.List`1[clsProvince]. 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 63:             }
Line 64: 
Line 65:             return (List<clsProvince>)HttpRuntime.Cache[_provincesCacheKey];
Line 66:         }
Line 67:     }

Source File: \\boswinfs04\home\users\web\b2525\ywh.kravtsovonlinecom\WEBSITES\RussianParentsNJ\App_Code\clsProvinces.cs    Line: 65

Stack Trace:


[InvalidCastException: [A]System.Collections.Generic.List`1[clsProvince] cannot be cast to [B]System.Collections.Generic.List`1[clsProvince]. 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'.]
   clsProvinces.get_Provinces() in \\boswinfs04\home\users\web\b2525\ywh.kravtsovonlinecom\WEBSITES\RussianParentsNJ\App_Code\clsProvinces.cs:65
   clsProvinces.GetProvinceByName(String provinceName) in \\boswinfs04\home\users\web\b2525\ywh.kravtsovonlinecom\WEBSITES\RussianParentsNJ\App_Code\clsProvinces.cs:119
   ucLocale.Page_Load(Object sender, EventArgs e) in \\boswinfs04\home\users\web\b2525\ywh.kravtsovonlinecom\WEBSITES\RussianParentsNJ\Controls\ucLocale.ascx.cs:73
   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.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175