回复:[问题]论坛首页的奇怪问题?
报告队长
.........现在是2007年11月29日
主页又出先了上述情况
Server Error in '/BBS' Application.
--------------------------------------------------------------------------------
Probable I/O race condition detected while copying memory. The I/O package is not thread safe by default. In multithreaded applications, a stream must be accessed in a thread-safe way, such as a thread-safe wrapper returned by TextReader's or TextWriter's Synchronized methods. This also applies to cl***es like StreamWriter and StreamReader.
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.IndexOutOfRangeException: Probable I/O race condition detected while copying memory. The I/O package is not thread safe by default. In multithreaded applications, a stream must be accessed in a thread-safe way, such as a thread-safe wrapper returned by TextReader's or TextWriter's Synchronized methods. This also applies to cl***es like StreamWriter and StreamReader.
Source Error:
Line 972:
Line 973: templateBuilder.Append(" <li>" + onlineuser.Olimg.ToString().Trim() + "\r\n");
Line 974: string iplocation = Tools.GetShortAddressWithIP(onlineuser.Ip);
Line 975:
Line 976:
Source File: d:\FTP\KFC\BBS\aspx\7\forumindex.aspx Line: 974
Stack Trace:
[IndexOutOfRangeException: Probable I/O race condition detected while copying memory. The I/O package is not thread safe by default. In multithreaded applications, a stream must be accessed in a thread-safe way, such as a thread-safe wrapper returned by TextReader's or TextWriter's Synchronized methods. This also applies to cl***es like StreamWriter and StreamReader.]
System.Buffer.InternalBlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count) +0
System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count) +265
KeyFC.Utility.PHCZIP.GetUInt32() +60
KeyFC.Utility.PHCZIP.IndexInfoAtPos(UInt32 Index_Pos) +97
KeyFC.Utility.PHCZIP.GetAddressWithIP(String IPValue) +109
KeyFC.Utility.SearchIpLocation.GetAddressWithIP(String IPValue) +64
KeyFC.Utility.Tools.GetShortAddressWithIP(String IPValue) +46
ASP.aspx_7_forumindex_aspx.OnInit(EventArgs e) in d:\FTP\KFC\BBS\aspx\7\forumindex.aspx:974
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832