Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Problem with outgoing messages being too large

 
 
Thread Tools Display Modes
Old 07-24-2006   #1 (permalink)
charles.boyung@gmail.com
Guest


 

Problem with outgoing messages being too large

We're creating a WCF service to upload files to a server. The service
has an input parameter of the byte array for the file. When I try to
upload any file bigger than 16KB, I get the following error:

An unhandled exception of type 'System.ServiceModel.FaultException'
occurred in mscorlib.dll

Additional information: The formatter threw an exception while trying
to deserialize the message: There was an error while trying to
deserialize parameter http://BigHammer.AssetService:Image. The
InnerException message was 'There was an error deserializing the object
of type System.Byte[]. The maximum array length quota (16384) has been
exceeded while reading XML data. This quota may be increased by
changing the MaxArrayLength property on the XmlDictionaryReaderQuotas
object used when creating the XML reader. Line 1, position 32505.'.
Please see InnerException for more details.

Uploading smaller files works fine, and downloading files of any size
(since that just uses maxReceivedMessageSize) works fine as well. I've
tried everything that I can think of and can't find any documentation
of this issue. Does anyone have any ideas on how to solve this?

Old 07-24-2006   #2 (permalink)
Arkady Frenkel
Guest


 

Re: Problem with outgoing messages being too large

Check example called "streaming" on
http://www.idesign.net/idesign/Deskt...dex=5&tabid=11
Juval Lowy show how to treat media files of large size there
Arkady

<charles.boyung@gmail.com> wrote in message
news:1153755035.375445.272970@i3g2000cwc.googlegroups.com...
> We're creating a WCF service to upload files to a server. The service
> has an input parameter of the byte array for the file. When I try to
> upload any file bigger than 16KB, I get the following error:
>
> An unhandled exception of type 'System.ServiceModel.FaultException'
> occurred in mscorlib.dll
>
> Additional information: The formatter threw an exception while trying
> to deserialize the message: There was an error while trying to
> deserialize parameter http://BigHammer.AssetService:Image. The
> InnerException message was 'There was an error deserializing the object
> of type System.Byte[]. The maximum array length quota (16384) has been
> exceeded while reading XML data. This quota may be increased by
> changing the MaxArrayLength property on the XmlDictionaryReaderQuotas
> object used when creating the XML reader. Line 1, position 32505.'.
> Please see InnerException for more details.
>
> Uploading smaller files works fine, and downloading files of any size
> (since that just uses maxReceivedMessageSize) works fine as well. I've
> tried everything that I can think of and can't find any documentation
> of this issue. Does anyone have any ideas on how to solve this?
>



Old 07-24-2006   #3 (permalink)
charles.boyung@gmail.com
Guest


 

Re: Problem with outgoing messages being too large

That works fine for retrieving from the service, but it still doesn't
work for sending the request to the service. It runs into the same
problem. Since downloading works fine the way that I am currently
doing it, this doesn't help at all.

Arkady Frenkel wrote:
> Check example called "streaming" on
> http://www.idesign.net/idesign/Deskt...dex=5&tabid=11
> Juval Lowy show how to treat media files of large size there
> Arkady
>
> <charles.boyung@gmail.com> wrote in message
> news:1153755035.375445.272970@i3g2000cwc.googlegroups.com...
> > We're creating a WCF service to upload files to a server. The service
> > has an input parameter of the byte array for the file. When I try to
> > upload any file bigger than 16KB, I get the following error:
> >
> > An unhandled exception of type 'System.ServiceModel.FaultException'
> > occurred in mscorlib.dll
> >
> > Additional information: The formatter threw an exception while trying
> > to deserialize the message: There was an error while trying to
> > deserialize parameter http://BigHammer.AssetService:Image. The
> > InnerException message was 'There was an error deserializing the object
> > of type System.Byte[]. The maximum array length quota (16384) has been
> > exceeded while reading XML data. This quota may be increased by
> > changing the MaxArrayLength property on the XmlDictionaryReaderQuotas
> > object used when creating the XML reader. Line 1, position 32505.'.
> > Please see InnerException for more details.
> >
> > Uploading smaller files works fine, and downloading files of any size
> > (since that just uses maxReceivedMessageSize) works fine as well. I've
> > tried everything that I can think of and can't find any documentation
> > of this issue. Does anyone have any ideas on how to solve this?
> >


Old 07-25-2006   #4 (permalink)
Arkady Frenkel
Guest


 

Re: Problem with outgoing messages being too large

Strange, that have to work in both directions in the same manner, maybe
ask that on
http://forums.microsoft.com/MSDN/Sho...D=118&SiteID=1 , why
uploading ( from service to client ) of the stream do work and downloading
( from client to service ) not.
And send us notification if will be answer(s) there
TIA
Arkady

<charles.boyung@gmail.com> wrote in message
news:1153762634.215189.307840@m79g2000cwm.googlegroups.com...
> That works fine for retrieving from the service, but it still doesn't
> work for sending the request to the service. It runs into the same
> problem. Since downloading works fine the way that I am currently
> doing it, this doesn't help at all.
>
> Arkady Frenkel wrote:
>> Check example called "streaming" on
>> http://www.idesign.net/idesign/Deskt...dex=5&tabid=11
>> Juval Lowy show how to treat media files of large size there
>> Arkady
>>
>> <charles.boyung@gmail.com> wrote in message
>> news:1153755035.375445.272970@i3g2000cwc.googlegroups.com...
>> > We're creating a WCF service to upload files to a server. The service
>> > has an input parameter of the byte array for the file. When I try to
>> > upload any file bigger than 16KB, I get the following error:
>> >
>> > An unhandled exception of type 'System.ServiceModel.FaultException'
>> > occurred in mscorlib.dll
>> >
>> > Additional information: The formatter threw an exception while trying
>> > to deserialize the message: There was an error while trying to
>> > deserialize parameter http://BigHammer.AssetService:Image. The
>> > InnerException message was 'There was an error deserializing the object
>> > of type System.Byte[]. The maximum array length quota (16384) has been
>> > exceeded while reading XML data. This quota may be increased by
>> > changing the MaxArrayLength property on the XmlDictionaryReaderQuotas
>> > object used when creating the XML reader. Line 1, position 32505.'.
>> > Please see InnerException for more details.
>> >
>> > Uploading smaller files works fine, and downloading files of any size
>> > (since that just uses maxReceivedMessageSize) works fine as well. I've
>> > tried everything that I can think of and can't find any documentation
>> > of this issue. Does anyone have any ideas on how to solve this?
>> >

>



 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
outgoing messages april dunn Vista mail 1 2 Weeks Ago 06:22 PM
outgoing messages heather Vista mail 1 06-24-2008 09:38 PM
Problem with Outgoing messages for Yahoo Ankit Patel Vista mail 1 05-02-2008 08:22 PM
Frozen outgoing message (excessively large) Patrija Vista mail 3 09-29-2007 02:46 PM
Outgoing Messages CarlosC Vista mail 5 09-22-2007 01:55 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50