473,417 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,417 software developers and data experts.

WSE352 Size of the record exceed its limit

WSE352 Size of the record exceed its limit

I have a C#.Net windows app that calls a FileNet web service. I can run a
select against the web service and it returns up to 7,200 records with 5
columns each. When I try to select more rows I get a WSE352 "The size of
the record exceed its limit." I think I am at the default 4 mb download
limit. I am using WSE2.0 on dotNet Framework 1.1.

I have tried changing the machine.config in the .Net\Frame work file and set
<maxRequestLength>-1</maxRequestLengthfor testing purposes. This did not
help.

I tried changing WSE.config in the Microsoft Wse\2.0 directory
<maxRequestLength>-1</maxRequestLengthfor testing purposes. This did not
help.

I have tried adding to my app.config file in my windows project

<microsoft.web.services2>
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>
</microsoft.web.services2>

I am still getting WSE352 errors.

Any help or ideas would be appreciated, thanks.
Jul 12 '06 #1
5 7031
Hi Steve,

Welcome to the MSDN newsgroup.

From your description, you're developing an .net webservice which uses WSE
2.0. And the webservice exposes some webmethod for transfering data
records. However, you're encountering some "record size exceed limit..."
error when transfering large amount of data, correct?

As for the webservice, is it an ASP.NET webservice or just a simple WSE
service component(soapservice, soap client)? Also, as for the data
transfering, are you using DIME? In addition, as for data transfering
method , is it used for uploading data from client to server or downloading
data from server to client?

Based on my research, the <maxRequestLengthsetting is described as below
in WSE 2.0 document:

===========
<maxRequestLengthElement is used to specifies the maximum size for
incoming SOAP messages.
===========

Therefore, according to the following cases, we should take the
corresponding care in the application configuration(WSE):

1. If the method is uploading data from client to server, the
"maxRequestLength" setting should be configured in server-side webservice's
config file

2. If the method is downloading data frmo server to client, this should be
configured in the client application's configuration file

You can verify this in your application. Also, if the webservice is hosted
in ASP.NET environment, asp.net appliation has also a <httpRuntime
maxRequestLength= setting in web.config. You'll also take care of this
setting if this is the case.

#httpRuntime Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

Hope this helps. If there is anything I missed or any other paricular
finding, 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.)

Jul 13 '06 #2
Thanks for the reply.

The webservice is a WSE service component soap client. It is a windows form
project. Images are received as DIME attachments when requested. In this
case I am not requesting an image so I think the records are sent in the
soap envelope without the dime attachment (not 100% sure). I think I need
to set the maxRequestLength in my app.config file like you suggest. I am
just not sure where the tags go. In my Web References I reference the web
service and have set the URL Behavior to Dynamic. This generated an
app.config file for me. I have tried to add the maxRequestLength in this
file but get a .Net exception "Unrecognized configuration section
microsoft.web.services2"

<?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>

I know this is wrong because of the exception. When I move the whole
<microsoft.web.services2group into the appSettings node I do not get an
exception but it still gets the size of the record exceeds its limit.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="V3updateP8Guidv1.CEWSI.FNCEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
<microsoft.web.services2>
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>
</microsoft.web.services2>
</appSettings>
</configuration>

To answer your other question it is used for downloading.

Thank you for helping! This will be cool if I get it to work.

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:3M**************@TK2MSFTNGXA01.phx.gbl...
Hi Steve,

Welcome to the MSDN newsgroup.

From your description, you're developing an .net webservice which uses WSE
2.0. And the webservice exposes some webmethod for transfering data
records. However, you're encountering some "record size exceed limit..."
error when transfering large amount of data, correct?

As for the webservice, is it an ASP.NET webservice or just a simple WSE
service component(soapservice, soap client)? Also, as for the data
transfering, are you using DIME? In addition, as for data transfering
method , is it used for uploading data from client to server or
downloading
data from server to client?

Based on my research, the <maxRequestLengthsetting is described as below
in WSE 2.0 document:

===========
<maxRequestLengthElement is used to specifies the maximum size for
incoming SOAP messages.
===========

Therefore, according to the following cases, we should take the
corresponding care in the application configuration(WSE):

1. If the method is uploading data from client to server, the
"maxRequestLength" setting should be configured in server-side
webservice's
config file

2. If the method is downloading data frmo server to client, this should be
configured in the client application's configuration file

You can verify this in your application. Also, if the webservice is hosted
in ASP.NET environment, asp.net appliation has also a <httpRuntime
maxRequestLength= setting in web.config. You'll also take care of this
setting if this is the case.

#httpRuntime Element (ASP.NET Settings Schema)
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

Hope this helps. If there is anything I missed or any other paricular
finding, 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.)

Jul 13 '06 #3
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.)

Jul 14 '06 #4
This is Very, Very COOL! It works!!! THANK YOU - Steven

Here is my app.config file that works.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<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>
<appSettings>
<add key="V3updateP8Guidv1.CEWSI.FNCEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
</appSettings>
<microsoft.web.services2>
<messaging>
<maxRequestLength>-1</maxRequestLength>
</messaging>
</microsoft.web.services2>
</configuration>

Thank you agian,
Steve
"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:dx**************@TK2MSFTNGXA01.phx.gbl...
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.)

Jul 14 '06 #5
Thanks for your followup Steve,

I'm also very happy that it helped you get it working.

Have a nice day!

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.)
Jul 15 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: William Bradley | last post by:
I have a table with 95 fields. Today I went to increase the field size on two of the fields from 20 to 50. When I try to save it I am told that I am trying to save too many fields. The help tells...
37
by: Carol Depore | last post by:
How do I determine the maximum array size? For example, int a works, but a does not (run time error). Thank you.
3
by: acoulson | last post by:
I'm trying to use DIME to transfer a large attachment via webservices, but can't get around a "WSE352: The size of the record uuid:ba1c20b5-8a6c-4675-96d3-191258cdcc1e exceed its limit" error. ...
4
by: vigori | last post by:
I have an application that send a file to a web service (I built both the application and the web service) I set the max file size via web.config of the web service: <httpRuntime...
5
by: Claudio Grondi | last post by:
I have just started to play around with the bsddb3 module interfacing the Berkeley Database. Beside the intended database file databaseFile.bdb I see in same directory also the __db.001...
3
by: RamaKrishna Narla | last post by:
Hi, In MS SQL Server, while creating the table, I am getting a warning message saying like "maximum row size can exceed allowed maximum size of 8060 bytes". Is there any way in SQL Server, to...
6
by: AB | last post by:
Hello all, I heard once that there is a limitation on the number of lines of code that a program can have when using C, but not for C++. Is this true? Any ideas?
3
by: ningjun.wang | last post by:
I set outputcache to 30 minutes for all .aspx pages on my asp.net 2.0 websites. If a search engine (such as Google) crawl my site, it can hit thousands of pages within a few minutes and thus...
1
by: Gurpal | last post by:
I'm getting this error when I test this page. Here is the error: Response object error 'ASP 0251 : 80004005' Response Buffer Limit Exceeded /test/test4.asp, line 0 Execution of the ASP...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.