Bug 2588 - System.ServiceModel.Dispatcher.BaseMessagesFormatter.MessageObjectToParts throws Array index is out of range exception
Summary: System.ServiceModel.Dispatcher.BaseMessagesFormatter.MessageObjectToParts thr...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-12-20 18:23 UTC by Alan
Modified: 2011-12-20 18:23 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 2588 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Alan 2011-12-20 18:23:25 UTC
When preparing a file to stream to a web service, the following exception is thrown.  Stack trace follows.

Array index is out of range.
   at (wrapper stelemref) object:virt_stelemref_object (intptr,object)
   at
System.ServiceModel.Dispatcher.BaseMessagesFormatter.MessageObjectToParts
(System.ServiceModel.Description.MessageDescription md, System.Object msgObject, System.Collections.Generic.Dictionary`2 headers, System.Object[]
parts) [0x000cc] in
/var/tmp/portage/dev-lang/mono-2.10.6/work/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/BaseMessagesFormatter.cs:329 

   at System.ServiceModel.Dispatcher.BaseMessagesFormatter.SerializeRequest
(System.ServiceModel.Channels.MessageVersion version, System.Object[]
parameters) [0x0007f] in
/var/tmp/portage/dev-lang/mono-2.10.6/work/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/BaseMessagesFormatter.cs:185 

   at System.ServiceModel.Dispatcher.OperationFormatter.SerializeRequest
(System.ServiceModel.Channels.MessageVersion messageVersion, System.Object[]
parameters) [0x00000] in
/var/tmp/portage/dev-lang/mono-2.10.6/work/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel.Dispatcher/BaseMessagesFormatter.cs:95 

   at System.ServiceModel.MonoInternal.ClientRuntimeChannel.CreateRequest
(System.ServiceModel.Dispatcher.ClientOperation op, System.Object[]
parameters) [0x0001e] in
/var/tmp/portage/dev-lang/mono-2.10.6/work/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:618 

   at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request
(System.ServiceModel.Description.OperationDescription od, System.Object[]
parameters) [0x0002d] in
/var/tmp/portage/dev-lang/mono-2.10.6/work/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:516 

   at System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess
(System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00038] in
/var/tmp/portage/dev-lang/mono-2.10.6/work/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:486 

   at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process
(System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in
/var/tmp/portage/dev-lang/mono-2.10.6/work/mono-2.10.6/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:466