![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| 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 | |||