上传文件时这是什么错误啊,怎么办呢?

tavor 2004-01-10 11:53:21
Server Error in '/GetAccessApplication' Application.
--------------------------------------------------------------------------------

'', hexadecimal value 0x07, is an invalid character. Line 1, position 295.
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.Xml.XmlException: '', hexadecimal value 0x07, is an invalid character. Line 1, position 295.

Source Error:


Line 35: [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
Line 36: public string HelloWorld(int[] passes) {
Line 37: object[] results = this.Invoke("HelloWorld", new object[] {
Line 38: passes});
Line 39: return ((string)(results[0]));

...全文
58 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
tavor 2004-01-29
  • 打赏
  • 举报
回复
我知道了,是读文件时里面有了特殊字符,而我让特殊字符 (char)byte了,所以就会出现这样的毛病, 是不是在web里,不允许对特殊字符执行(char)byte,比如我用了char('\0x10')就会出现问题,请问如果出现这样的问题应该怎么办呢?是不是就不让它(char)byte呢,而在这里的特殊字符的范围应该有多大呢,
tavor 2004-01-11
  • 打赏
  • 举报
回复
应该不是文件名的问题吧,我用comp.txt有时没问题,有时有问题,我想应该是里面的内容的错误,可不知道怎么去对文件包含的内容进行转义啊!
tavor 2004-01-11
  • 打赏
  • 举报
回复
应该不是文件名的问题吧,我用comp.txt有时没问题,有时有问题,我想应该是里面的内容的错误,可不知道怎么去对文件包含的内容进行转义啊!
popu2 2004-01-11
  • 打赏
  • 举报
回复
是debug出的吗,文件名转义了吗

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧