Uncaught exception terminated service :Exception type: Serializati
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 Orchestration > Uncaught exception terminated service :Exception type: Serializati




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

    Uncaught exception terminated service :Exception type: Serializati  
sullu


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


 
05-31-06 06:16 PM

Hi All,

I have an Orchestration with Exception Handling scope.
I am catching the Exception inside the Exception Handler and withing the
CatchException block I am constructing an ErrorMessage and sending to to a
file location

The message assignment inside the construct shape contains the following cod
e

//initialize the xm variable
xm=new System.Xml.XmlDocument();
//instanciate xm with the xml structure string
xm.LoadXml("<ns0:Error xmlns:ns0="the
namespace"><ErrorDetails><ErrorId/><ErrorDescription/></ErrorDetails><InputM
essage></InputMessage></ns0:Error>");
assigning the xm to ErrorMsg schema
ErrorMsg =xm;
//assigning values to Distinguished fields of ErrorMsg schema
ErrorMsg.ErrorDetails.ErrorId="1234";
ErrorMsg.ErrorDetails.ErrorDescription =exobj.Message;
//Assigning input message to an xml variable xmAIS
xmAIS=AISCOC;
//xpath to assign the input message to the ErrorMsg schema
xpath(ErrorMsg ,"//InputMessage")=xmAIS.OuterXml;

My code is working fine upto this.
And after this construct shape is the send shape which sends the ErrorMsg to
a file location.

But i am getting the following error most of the time..
I dont know how to find out the route cause for these error..


Uncaught exception terminated service
ABC(9420f059-f0ad-c80a-a679-8a4892e8f30c), instance
4b1844c3-4168-4dbd-97fb-9961f79ab088

The type System.Xml.XmlDocument in Assembly System.Xml, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as
serializable.

Exception type: SerializationException
Source: mscorlib
Target Site: System.Reflection.MemberInfo[]
InternalGetSerializableMembers(System.RuntimeType, Boolean)
Help Link:
Additional error information:


Anybody Help plz
--
Many Thanks,
Sulaiman Abubacker






[ Post a follow-up to this message ]



    RE: Uncaught exception terminated service :Exception type: Serializati  
Michael Elizarov [MSFT]


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


 
05-31-06 06:16 PM

The reason is that XmlDocument is not serializable. All types that you use
in an orchestration need to be binary serializable. The reason is that when
send shape completes instance state is persisted, and this involves
serializing. If you have any non-serializable objects in your code you will
fail.

-- Michael

--------------------[vbcol=seagreen] 
a[vbcol=seagreen] 
code[vbcol=seagreen] 
tMessage></InputMessage></ns0:Error>");[vbcol=seagreen] 
to[vbcol=seagreen] 
Version=1.0.5000.0,[vbcol=seagreen] 






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:58 PM.      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