注册 登录
编程论坛 ASP.NET技术论坛

调用WebServer错误问题 text/plain

hnczljt 发布于 2008-07-19 00:37, 1115 次点击
高手帮我解决下这个问题吧
我调用了一个WebServer的方法,然后报了这个错:

System.Exception: 客户端发现响应内容类型为“text/plain; charset=utf-8”,但应为“text/xml”。
请求失败,错误信息为:

--
System.InvalidOperationException: UNMPWS/Notify.asmx Web 服务方法名无效。
  at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

--.

我改了web.Config 里的文件,
<globalization requestEncoding="GB2312" responseEncoding="GB2312" fileEncoding="GB2312"/>
然后去掉<?xml version="1.0" encoding="utf-8" ?>里的encoding="utf-8"

但还是 报错。。。。

哪个大虾帮我解决下啊
0 回复
1