首页 新闻 会员 周边

IIS只要发现一次ArgumentException异常,这个线程就一直报此错误

0
悬赏园豆:50 [已关闭问题]

System.ArgumentException: 在索引 1 处发现无前置高代理项的低代理项字符。输入可能不在此编码内,或者可能不包含有效的 Unicode (UTF-16)字符。

参数名: chars
   at System.Text.UTF8Encoding.GetBytes(Char* chars, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex, UTF8Encoder encoder)
   at System.Text.UTF8Encoding.GetBytes(Char[] chars, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex, UTF8Encoder encoder)
   at System.Text.UTF8Encoder.GetBytes(Char[] chars, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex, Boolean flush)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Write(Char[] buffer, Int32 index, Int32 count)
   at System.IO.TextWriter.WriteLine(String value)
   at System.IO.SyncTextWriter.WriteLine(String value)

 

好像这个异常一出现, 其它的访问只要执行 GetBytes 就会报这个错误, 有什么办法处理?

 

问题补充: 我的环境是 Window2003 + IIS6 + Dotnet1.1
阿牛的主页 阿牛 | 初学一级 | 园豆:109
提问于:2010-07-16 13:59
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册