Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Problem with outgoing messages being too large

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


 
 

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?


My System SpecsSystem Spec
Old 07-24-2006   #2 (permalink)
Arkady Frenkel


 
 

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



My System SpecsSystem Spec
Old 07-24-2006   #3 (permalink)
charles.boyung@gmail.com


 
 

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


My System SpecsSystem Spec
Old 07-25-2006   #4 (permalink)
Arkady Frenkel


 
 

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

>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Outgoing Messages Vista mail
outgoing messages won't go Vista mail
Problem with Outgoing messages for Yahoo Vista mail
Frozen outgoing message (excessively large) Vista mail
Outgoing Messages Vista mail


Vista Forums 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 Ltd

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