Xml通过客户端的MaxStringContentLength错误导入数据wcf [英] Xml Import data wcf through the MaxStringContentLength error in client side
本文介绍了Xml通过客户端的MaxStringContentLength错误导入数据wcf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我更改了confi文件,现在遇到此错误,请帮帮我
Hi,
I changed confi files ,now i am getting this error please help me
The requested service, 'http://narasimhulu.sourceedge.com/IntegrationService/IntegrationService.svc' could not be activated. See the server's diagnostic trace logs for more information.
问候,
奈良市
编辑TR:如果您要使用< pre>标签,请记住要关闭忽略文本中的HTML".
Regards,
Narasima
Edit TR : If you''re going to use <pre> tags, please remember to turn off ''Ignore HTML in text''.
推荐答案
我相信您的web.config不太正确.
我认为您不见了:bindingConfiguration ="basicHttpBinding"
在服务的端点节点中-这使其忽略您的配置设置...
I believe your web.config is not quite correct.
I think you are missing : bindingConfiguration="basicHttpBinding"
in the endpoint node for the service - this makes it ignore your configuration settings...
<endpoint binding="basicHttpBinding"
name="basicHttpBinding" bindingName="IService" bindingNamespace="http://Emisoft.Emis.ServiceContracts/2007/05"
contract="Emisoft.EmisServices.BusinessLogic.IIntegrationWebService" />
应该是:
should be:
<endpoint binding="basicHttpBinding"
bindingConfiguration="basicHttpBinding"
name="basicHttpBinding" bindingName="IService" bindingNamespace="http://Emisoft.Emis.ServiceContracts/2007/05"
contract="Emisoft.EmisServices.BusinessLogic.IIntegrationWebService" />
通常建议使用WCF配置编辑器编辑这些配置文件
It is usually advisable to edit these config files using the WCF Configuration editor
这篇关于Xml通过客户端的MaxStringContentLength错误导入数据wcf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文