sending a copy of an XMLMessage
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > sending a copy of an XMLMessage




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    sending a copy of an XMLMessage  
andrew


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-06 06: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.  Th
e
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??





[ Post a follow-up to this message ]



    Re: sending a copy of an XMLMessage  
Scott Colestock


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-22-06 12:17 AM

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







[ Post a follow-up to this message ]



    Re: sending a copy of an XMLMessage  
PBR


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-25-06 06:19 AM


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






[ Post a follow-up to this message ]



    Re: sending a copy of an XMLMessage  
andrew


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-27-06 06:17 PM

After changing my orchestration type to Atomic... it works.  Thanks.  :D





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:44 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register