首页 新闻 会员 周边

线程执行操作时发生异常:text/html; charset=utf-8 与绑定(application/soap+xml; charset=utf-8)的内容类

0
悬赏园豆:30 [已关闭问题] 关闭于 2014-04-28 17:46

线程执行操作时发生异常:text/html; charset=utf-8 与绑定(application/soap+xml; charset=utf-8)的内容类型不匹配。如果使用自定义编码器,请确保正确实现 IsContentTypeSupported 方法。响应的前 1024 个字节为:“<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>

 

环境:

windows 7 旗舰版

VS2013

IIS7.0

最长的路漫漫的主页 最长的路漫漫 | 菜鸟二级 | 园豆:252
提问于:2014-04-11 16:57
< >
分享
所有回答(2)
0

不详细呀,产生的原因。

lucika.zh | 园豆:62 (初学一级) | 2014-04-11 17:24
1

就是服务发生异常提示的意思是,本来这个请求应该响应一个soap的xml文件,现在返回的是html文件

之所以不一样是因为服务发生异常返回了html异常提示页面,这是客户端就处理不了了

具体原因需要看实际的异常提示

吴瑞祥 | 园豆:29449 (高人七级) | 2014-04-11 17:56

线程ID:[0]- 消息:Apabi.USP.Thread.ProviderProcessor.run(): 线程执行操作时发生异常:响应消息的内容类型 text/html; charset=utf-8 与绑定(application/soap+xml; charset=utf-8)的内容类型不匹配。如果使用自定义编码器,请确保正确实现 IsContentTypeSupported 方法。响应的前 1024 个字节为:“<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IIS 7.5 详细错误 - 500.19 - Internal Server Error</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;}
pre{margin:0;font-size:1.4em;word-wrap:break-word;}
ul,ol{margin:10px 0 10px 40px;}
ul.first,ol.first{margin-top:5px;}
fieldset{padding:0 15px 10px 15px;}
.summary-container fieldset{padding-bottom:5px;margin-top:4px;}
legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;}
legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px;
border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696;
border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;fo”。

Server stack trace:
在 System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 **********.Content.IProviderManager.Execute(String type, Dictionary`2 paras)
在 **********.Content.ProviderManagerClient.Execute(String type, Dictionary`2 paras) 位置 **********\Content\RemoteProvider.cs:行号 760
在 **********.Content.RemoteProvider.CreateContent() **********\Content\RemoteProvider.cs:行号 61
在 **********.CacheContentProvider.ExecuteCacheInProc()
在 **********.CacheContentProvider.GetContent()
在 **********.Content.ProviderProcess.Business(Object& returnObj) 位置 **********\Content\ProviderProcess.cs:行号 46
远程服务器返回错误: (500) 内部服务器错误。 在 System.Net.HttpWebRequest.GetResponse()
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

 

 

支持(0) 反对(0) 最长的路漫漫 | 园豆:252 (菜鸟二级) | 2014-04-14 11:17
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册