|
Home > Archive > BizTalk Server General > June 2006 > sending a copy of an XMLMessage
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
sending a copy of an XMLMessage
|
|
| andrew 2006-06-21, 1:17 pm |
| I have an orchestration that takes in a message. First I try to copy the
message and send it out to a folder... a Receive shape brings the message
into the orchestration... then I do a construct with a Message Assignment to
make myself a copy so I can use the original later in the orchestration. The
code in my Assignment shape is as follows...
myCopy = myOriginal;
myCopy(*) = myOriginal(*);
The exact same code works in a different orchestration... anyways I run the
orchestration... my message is received... but when I try to send it out... I
get an error:
"The type System.IO.FileStream in Assembly mscorlib, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as
serializable."
Does anyone know the cause of this error??
| |
| Scott Colestock 2006-06-21, 7:17 pm |
| Are you sure the problem is related to this code at all ? Do you perhaps
have a FileStream-typed variable declared in your orchestration (that you
can remove?)
Scott Colestock
www.traceofthought.net
"andrew" <andrew@discussions.microsoft.com> wrote in message
news:72A37189-A4DB-47C7-BC7C-8F904804C5CE@microsoft.com...
>I have an orchestration that takes in a message. First I try to copy the
> message and send it out to a folder... a Receive shape brings the message
> into the orchestration... then I do a construct with a Message Assignment
> to
> make myself a copy so I can use the original later in the orchestration.
> The
> code in my Assignment shape is as follows...
>
> myCopy = myOriginal;
> myCopy(*) = myOriginal(*);
>
> The exact same code works in a different orchestration... anyways I run
> the
> orchestration... my message is received... but when I try to send it
> out... I
> get an error:
>
> "The type System.IO.FileStream in Assembly mscorlib, Version=1.0.5000.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as
> serializable."
>
> Does anyone know the cause of this error??
| |
|
|
"andrew" <andrew@discussions.microsoft.com> wrote in message
news:72A37189-A4DB-47C7-BC7C-8F904804C5CE@microsoft.com...
Are you positive that you aren't using a FileStream object anywhere in the
orchestration, either directly in an expression, or from an assembly you're
using in an expression? If so, you'll have to wrap the shape in an atomic
scope.
Paul Brinkley-Rogers
>I have an orchestration that takes in a message. First I try to copy the
> message and send it out to a folder... a Receive shape brings the message
> into the orchestration... then I do a construct with a Message Assignment
> to
> make myself a copy so I can use the original later in the orchestration.
> The
> code in my Assignment shape is as follows...
>
> myCopy = myOriginal;
> myCopy(*) = myOriginal(*);
>
> The exact same code works in a different orchestration... anyways I run
> the
> orchestration... my message is received... but when I try to send it
> out... I
> get an error:
>
> "The type System.IO.FileStream in Assembly mscorlib, Version=1.0.5000.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as
> serializable."
>
> Does anyone know the cause of this error??
| |
| andrew 2006-06-27, 1:17 pm |
| After changing my orchestration type to Atomic... it works. Thanks. :D
|
|
|
|
|