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

对象的类型必须是 String。

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

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

源错误:


行 1360:        string chkey = ch_ReadFile_chkey + Server.MapPath(filePath);
行 1361:
行 1362:        if (HttpContext.Current.Application[chkey] != null)
行 1363:        {
行 1364:            string fcc = HttpContext.Current.Application[chkey].ToString();

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

堆栈跟踪:


[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.index_aspx.ReadCache(String filePath) in e:\www\bx1.wskmn.com\index.aspx:1362
   ASP.<getsource>d__4.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:226
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<PageLoadAsync>d__0.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:189
   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