Thanks for your response Steve,
Since you confirmed that the webmethod is a data downloading method, the
maxRequestLength should be set in the client application's app.config file.
You have posted the configuration section in your last reply as below:
================
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="V3updateP8Guidv1.CEWSI.FNCEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
</appSettings>
<microsoft.web.services2>
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>
</microsoft.web.services2>
</configuration>
==================
is this the complete content of our client appliation's app.config? If
so, I think you need to add the section registering info for the
<microsoft.web.services2configuration section. This is a custom
section(not .net framework 1.1. built-in one) which need to be declared in
config file before using it. Therefore, a complete configuration file
will look like below:
=====================
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!-- here is the section registering section-->
<configSections>
<section name="microsoft.web.services2"
type="Microsoft.Web.Services2.Configuration.WebSer vicesConfiguration,
Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
</configSections>
<microsoft.web.services2>
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>
</microsoft.web.services2>
<!-- maybe some other configuration sections-->
</configuration>
=======================
BTW, if you have installed the WSE 2.0's sample application, you can find
some sample configuration files among those samples. Also, if the Visual
Studio 2003's WSE 2.0 add-in is installed, the add-in can help use
generated a correct configuration file(whch contains the section
registering elements automatically).
Hope this helps. If there is still anything unclear or any other problems,
please feel free to post here.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)