473,762 Members | 8,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
<maxRequestLeng th>-1</maxRequestLengt hfor testing purposes. This did not
help.

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

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

<microsoft.web. services2>
<messaging>
<maxRequestLeng th>-1</maxRequestLengt h>
</messaging>
</microsoft.web.s ervices2>

I am still getting WSE352 errors.

Any help or ideas would be appreciated, thanks.
Jul 12 '06 #1
5 7060
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(soaps ervice, 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 <maxRequestLeng thsetting is described as below
in WSE 2.0 document:

===========
<maxRequestLeng thElement 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(W SE):

1. If the method is uploading data from client to server, the
"maxRequestLeng th" 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
maxRequestLengt h= 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 maxRequestLengt h 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 maxRequestLengt h in this
file but get a .Net exception "Unrecogniz ed configuration section
microsoft.web.s ervices2"

<?xml version="1.0" encoding="utf-8"?>
<configuratio n>
<appSettings>
<add key="V3updateP8 Guidv1.CEWSI.FN CEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
</appSettings>
<microsoft.web. services2>
<messaging>
<maxRequestLeng th>-1</maxRequestLengt h>
</messaging>
</microsoft.web.s ervices2>
</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"?>
<configuratio n>
<appSettings>
<add key="V3updateP8 Guidv1.CEWSI.FN CEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
<microsoft.web. services2>
<messaging>
<maxRequestLeng th>-1</maxRequestLengt h>
</messaging>
</microsoft.web.s ervices2>
</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.comw rote in message
news:3M******** ******@TK2MSFTN GXA01.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(soaps ervice, 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 <maxRequestLeng thsetting is described as below
in WSE 2.0 document:

===========
<maxRequestLeng thElement 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(W SE):

1. If the method is uploading data from client to server, the
"maxRequestLeng th" 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
maxRequestLengt h= 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
maxRequestLengt h 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"?>
<configuratio n>
<appSettings>
<add key="V3updateP8 Guidv1.CEWSI.FN CEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
</appSettings>
<microsoft.web. services2>
<messaging>
<maxRequestLeng th>-1</maxRequestLengt h>
</messaging>
</microsoft.web.s ervices2>
</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. services2config uration 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"?>
<configuratio n>
<!-- here is the section registering section-->
<configSections >
<section name="microsoft .web.services2"
type="Microsoft .Web.Services2. Configuration.W ebServicesConfi guration,
Microsoft.Web.S ervices2, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5" />
</configSections>

<microsoft.web. services2>
<messaging>
<maxRequestLeng th>-1</maxRequestLengt h>
</messaging>
</microsoft.web.s ervices2>

<!-- 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"?>
<configuratio n>
<configSections >
<section name="microsoft .web.services2"
type="Microsoft .Web.Services2. Configuration.W ebServicesConfi guration,
Microsoft.Web.S ervices2, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5" />
</configSections>
<appSettings>
<add key="V3updateP8 Guidv1.CEWSI.FN CEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
</appSettings>
<microsoft.web. services2>
<messaging>
<maxRequestLeng th>-1</maxRequestLengt h>
</messaging>
</microsoft.web.s ervices2>
</configuration>

Thank you agian,
Steve
"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:dx******** ******@TK2MSFTN GXA01.phx.gbl.. .
Thanks for your response Steve,

Since you confirmed that the webmethod is a data downloading method, the
maxRequestLengt h 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"?>
<configuratio n>
<appSettings>
<add key="V3updateP8 Guidv1.CEWSI.FN CEWS35Service"
value="http://myUrl/FNCEWS35DIME"/>
</appSettings>
<microsoft.web. services2>
<messaging>
<maxRequestLeng th>-1</maxRequestLengt h>
</messaging>
</microsoft.web.s ervices2>
</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. services2config uration 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"?>
<configuratio n>
<!-- here is the section registering section-->
<configSections >
<section name="microsoft .web.services2"
type="Microsoft .Web.Services2. Configuration.W ebServicesConfi guration,
Microsoft.Web.S ervices2, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5" />
</configSections>

<microsoft.web. services2>
<messaging>
<maxRequestLeng th>-1</maxRequestLengt h>
</messaging>
</microsoft.web.s ervices2>

<!-- 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
1410
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 me that I am over the 255. However there are only the 95 fields I have quoted above. Thank you for your help, Bill.
37
48745
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
2100
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. I've installed SP2, set the maxRequestLength to 2097151 in <httpRuntime> and <microsoft.web.services2> in web.config as well as my client's app.config: all to no effect! I'm stumped at this point and would appreciate any recommendations.
4
7219
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 executionTimeout="1800" maxRequestLength="5000" /> When the file size exceed 5000 (kb) I receive the right exception (System.Web.Services.Protocols.SoapException) that tell me that the dimension
5
6465
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 __db.002 __db.003 files where
3
11784
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 increase this allowed maximum row size? The setting like "set ANSI_WARNINGS OFF" is not suitable in my case. I
6
2712
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
5619
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 produce a large amount of page caches. This could use a lot of memory and impact other websites running on the same machine. My question is: how can I limit the memory size (e.g. to 100MB) used by the cache? I can set the following in web.config:
1
6337
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 page caused the Response Buffer to exceed its configured limit.
0
9378
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9927
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7360
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6640
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5268
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.