“/”应用程序中的服务器错误。

对象的类型必须是 String。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 对象的类型必须是 String。

源错误:


行 171:        }
行 172:            
行 173:        else if(cache_content && Application[ch_yet_cache_key] != null  && Application[ch_yet_cache_key].ToString() != "error")
行 174:        {
行 175:            DateTime currentTime = DateTime.Now;

源文件: e:\www\bx1.wskmn.com\index.aspx    行: 173

堆栈跟踪:


[ArgumentException: 对象的类型必须是 String。]
   System.Globalization.CompareInfo.InternalGetGlobalizedHashCode(IntPtr handle, IntPtr handleOrigin, String localeName, String source, Int32 length, Int32 dwFlags, Boolean forceRandomizedHashing, Int64 additionalEntropy) +0
   System.Globalization.CompareInfo.GetHashCodeOfString(String source, CompareOptions options, Boolean forceRandomizedHashing, Int64 additionalEntropy) +74
   System.CultureAwareComparer.GetHashCode(String obj) +71
   System.StringComparer.GetHashCode(Object obj) +44
   System.Collections.Hashtable.GetHash(Object key) +17
   System.Collections.Hashtable.get_Item(Object key) +54
   System.Collections.Specialized.NameObjectCollectionBase.FindEntry(String key) +19
   System.Collections.Specialized.NameObjectCollectionBase.BaseGet(String name) +9
   System.Web.HttpApplicationState.Get(String name) +57
   System.Web.HttpApplicationState.get_Item(String name) +9
   ASP.<PageLoadAsync>d__0.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:173
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.UI.<ExecuteTasksAsync>d__3.MoveNext() +363
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.UI.<ProcessRequestAsync>d__554.MoveNext() +876


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3535.0