日期:2014-05-17  浏览次数:20810 次

关于web。config文件中添加内容问题
在做webservice的时候碰到了“已超过传入消息(65536)的最大消息大小配额。若要增加配额,请使用相应绑定元素上的MaxReceivedMessageSize 属性。”网上查了之后发现需要修改MaxReceivedMessageSize 属性。
修改在哪里?
以下是我的web。config
	<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="true" targetFramework="4.0">
</compilation>
<!--
      通过 <authentication> 节可以配置
      安全身份验证模式,ASP.NET 
      使用该模式来识别来访用户身份。 
    -->
<authentication mode="Windows"/>
<!--
       如果在执行请求的过程中出现未处理的错误
       则通过 <customErrors> 节
       可以配置相应的处理步骤。具体而言,
       开发人员通过该节可配置要显示的 html 错误页,
       以代替错误堆栈跟踪。

       <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
         <error statusCode="403" redirect="NoAccess.htm" />
         <error statusCode="404" redirect="FileNotFound.htm" />
       </customErrors>
    -->
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>
<!-- 
        system.webServer 节是在 Internet Information Services 7.0 下运行 ASP.NET AJAX
        所必需的。对早期版本的 IIS 来说则不需要此节。
    -->
</configuration>
Web ASP.NET

------解决方案--------------------
你不会搜啊?
------解决方案--------------------
你是怎么调用webservice 的? 怎么配置文件中没看到webservice的配置信息, 是动态调用的么?
------解决方案--------------------
引用:
楼下回复就给分哦