<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Failed on 2nd call to SaveChanges()</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Failed on 2nd call to SaveChanges()</description>
  <pubDate>Sun, 12 Apr 2026 02:11:35 -700</pubDate>
  <lastBuildDate>Thu, 18 Jun 2009 11:10:46 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1315</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Failed on 2nd call to SaveChanges() : Great!  Many thanks. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4803#4803</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=86" rel="nofollow">dkearney1</a><br /><strong>Subject:</strong> 1315<br /><strong>Posted:</strong> 18-Jun-2009 at 11:10am<br /><br />Great!  Many thanks.]]>
   </description>
   <pubDate>Thu, 18 Jun 2009 11:10:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4803#4803</guid>
  </item> 
  <item>
   <title>Failed on 2nd call to SaveChanges() : RC3 (v5.1.1) is available for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4800#4800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1315<br /><strong>Posted:</strong> 18-Jun-2009 at 10:58am<br /><br />RC3 (v5.1.1) is available for download now.&nbsp; The home page still says RC2, because the release won't be "official" until later this afternoon, but what you download is RC3.]]>
   </description>
   <pubDate>Thu, 18 Jun 2009 10:58:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4800#4800</guid>
  </item> 
  <item>
   <title>Failed on 2nd call to SaveChanges() : Do you still anticipate getting...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4796#4796</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=86" rel="nofollow">dkearney1</a><br /><strong>Subject:</strong> 1315<br /><strong>Posted:</strong> 18-Jun-2009 at 6:06am<br /><br />Do you still anticipate getting the 5.1.1 bits out this week?]]>
   </description>
   <pubDate>Thu, 18 Jun 2009 06:06:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4796#4796</guid>
  </item> 
  <item>
   <title>Failed on 2nd call to SaveChanges() : Thanks for the quick turnaround....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4749#4749</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=86" rel="nofollow">dkearney1</a><br /><strong>Subject:</strong> 1315<br /><strong>Posted:</strong> 10-Jun-2009 at 12:33pm<br /><br />Thanks for the quick turnaround.  I'll try the workaround you mentioned, and look forward to the release of the 5.1.1 bits.]]>
   </description>
   <pubDate>Wed, 10 Jun 2009 12:33:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4749#4749</guid>
  </item> 
  <item>
   <title>Failed on 2nd call to SaveChanges() : First, the good news. This problem...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4746#4746</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1315<br /><strong>Posted:</strong> 10-Jun-2009 at 12:09pm<br /><br />First, the good news.&nbsp; This problem does not occur in current bits, which will be released in version 5.1.1 next week.<DIV>&nbsp;</DIV><DIV>The problem in prior versions is two-fold.&nbsp; </DIV><DIV>&nbsp;- As you know, DevForce entities have an EntityState, and also an EntityVersion, similar to a DataRow;&nbsp;so there are current value, original value and proposed value arrays used internally for change tracking.&nbsp; So, the first part of the problem is that prior to v5.1.1 we were incorrectly allowing the original values to be set while the Entity was undergoing serialization.&nbsp; These values were being passed back to the application from the server after the Save and shouldn't have been.</DIV><DIV>&nbsp;</DIV><DIV>- Now the interesting part - apparently because this was happening within the context of serialization, the DateTimeOffset values were actually created as DateTimeOffsetAdapter types.&nbsp; Once an entity was saved, it would have these odd datatypes stored in its original values, and a cast exception would then occur when this data was accessed, as it is when the SaveChanges() processing occurs.&nbsp; What is a DateTimeOffsetAdapter you might wonder?&nbsp; It's an internal type used by Microsoft buried within System.Runtime.Serialization and how or why it's being pushed into our properties is a mystery.</DIV><DIV>&nbsp;</DIV><DIV>In the new version due next week, we've fixed the issue with the unnecessary creation of this data during serialization, and a side effect of that is&nbsp;your problem also goes away.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>If you need a workaround until you upgrade you can do the following: after the SaveChanges completes, call SetModified() immediately followed by AcceptChanges() on all affected entities.&nbsp; This combination ensures that version arrays containing the DateTimeOffsetAdapter are cleared.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 10 Jun 2009 12:09:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4746#4746</guid>
  </item> 
  <item>
   <title>Failed on 2nd call to SaveChanges() : Scenario:  With a newly instansiated...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4740#4740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=86" rel="nofollow">dkearney1</a><br /><strong>Subject:</strong> 1315<br /><strong>Posted:</strong> 09-Jun-2009 at 4:22pm<br /><br />Scenario:<DIV>&nbsp;</DIV><DIV>With a newly instansiated and logged-in EntityManager</DIV><UL><LI>Retrieve an Entity from the database</LI><LI>Modify a property</LI><LI>call em.SaveChanges()</LI><UL><LI>I have derived from the IdeaBlade supplied EntityManager and hooked up an em_Saving event&nbsp;handler that sets the values of the housekeeping properties "Creator", "CreateDate", "LastUpdater", "LastUpdate".</LI></UL><LI>Save operation completes normally</LI><LI>Verify that housekeeping values in database match those set in Saving event handler</LI><LI>Using the same EntityManager instance and same Entity instance</LI><LI>Modify&nbsp;the property again</LI><LI>call em.SaveChanges()</LI><UL><LI>Verify that the Saving event hander updates the housekeeping properties appropriately</LI></UL><LI>Exception is encountered.</LI></UL><P>I speak specifically of the housekeeping properties because dates are of type DateTimeOffset, and that datatype is referenced in the exception as "WriteDateTimeOffsetToXml".</P><DIV>Obviously, I need help avoiding the exception.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Dan</DIV><DIV>&nbsp;</DIV><DIV>Text of the exception:</DIV><DIV><FONT size=1><P>A first chance exception of type 'System.InvalidCastException' occurred in Unknown Module.</P><DIV>A first chance exception of type 'System.InvalidCastException' occurred in mscorlib.dll</DIV><P>A first chance exception of type 'System.InvalidCastException' occurred in IdeaBlade.EntityModel.dll</P><P>A first chance exception of type 'IdeaBlade.EntityModel.EntityManagerSaveException' occurred in IdeaBlade.EntityModel.dll</P><P>A first chance exception of type 'IdeaBlade.EntityModel.EntityManagerSaveException' occurred in IdeaBlade.EntityModel.dll</P><P>IdeaBlade.EntityModel.EntityManagerSaveException: Specified cast is not valid. ---&gt; System.InvalidCastException: Specified cast is not valid.</P><P>Server stack trace: </P><P>at WriteDateTimeOffsetToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )</P><P>at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, Boolean verifyKnownType, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithXsiType(XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at WriteArrayOfanyTypeToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )</P><P>at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerializeReference(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at WriteEntitySurrogateToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )</P><P>at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at WriteArrayOfEntitySurrogateToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )</P><P>at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerializeReference(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at WriteArrayOfEntitySurrogateToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )</P><P>at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerializeReference(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at WriteEntityGroupSurrogateToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )</P><P>at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at WriteArrayOfEntityGroupSurrogateToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , CollectionDataContract )</P><P>at System.Runtime.Serialization.CollectionDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerializeReference(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at WriteArrayOfEntityGroupSurrogateToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )</P><P>at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.WriteDataContractValue(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeWithoutXsiType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerialize(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerializeReference(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)</P><P>at WriteEntityCacheToXml(XmlWriterDelegator , Object , XmlObjectSerializerWriteContext , ClassDataContract )</P><P>at System.Runtime.Serialization.ClassDataContract.WriteXmlValue(XmlWriterDelegator xmlWriter, Object obj, XmlObjectSerializerWriteContext context)</P><P>at System.Runtime.Serialization.NetDataContractSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph, DataContract contract, Hashtable surrogateDataContracts)</P><P>at System.Runtime.Serialization.NetDataContractSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)</P><P>at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph)</P><P>at System.Runtime.Serialization.XmlObjectSerializer.WriteObject(XmlDictionaryWriter writer, Object graph)</P><P>at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.SerializeParameterPart(XmlDictionaryWriter writer, PartInfo part, Object graph)</P><P>at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.SerializeParameter(XmlDictionaryWriter writer, PartInfo part, Object graph)</P><P>at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.SerializeParameters(XmlDictionaryWriter writer, PartInfo&#091;&#093; parts, Object&#091;&#093; parameters)</P><P>at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.SerializeBody(XmlDictionaryWriter writer, MessageVersion version, String action, MessageDescription messageDescription, Object returnValue, Object&#091;&#093; parameters, Boolean isRequest)</P><P>at System.ServiceModel.Dispatcher.OperationFormatter.SerializeBodyContents(XmlDictionaryWriter writer, MessageVersion version, Object&#091;&#093; parameters, Object returnValue, Boolean isRequest)</P><P>at System.ServiceModel.Dispatcher.OperationFormatter.OperationFormatterMessage.OperationFormatterBodyWriter.OnWriteBodyContents(XmlDictionaryWriter writer)</P><P>at System.ServiceModel.Channels.BodyWriter.WriteBodyContents(XmlDictionaryWriter writer)</P><P>at System.ServiceModel.Channels.BodyWriterMessage.OnWriteBodyContents(XmlDictionaryWriter writer)</P><P>at System.ServiceModel.Channels.Message.OnWriteMessage(XmlDictionaryWriter writer)</P><P>at System.ServiceModel.Channels.Message.WriteMessage(XmlDictionaryWriter writer)</P><P>at System.ServiceModel.Channels.BufferedMessageWriter.WriteMessage(Message message, BufferManager bufferManager, Int32 initialOffset, Int32 maxSizeQuota)</P><P>at System.ServiceModel.Channels.BinaryMessageEncoderFactory.BinaryMessageEncoder.WriteMessage(Message message, Int32 maxMessageSize, BufferManager bufferManager, Int32 messageOffset)</P><P>at IdeaBlade.Core.Wcf.Extensions.GZipMessageEncoderFactory.GZipMessageEncoder.WriteMessage(Message message, Int32 maxMessageSize, BufferManager bufferManager, Int32 messageOffset)</P><P>at System.ServiceModel.Channels.HttpOutput.SerializeBufferedMessage(Message message)</P><P>at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout)</P><P>at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout)</P><P>at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)</P><P>at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)</P><P>at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object&#091;&#093; ins, Object&#091;&#093; outs, TimeSpan timeout)</P><P>at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object&#091;&#093; ins, Object&#091;&#093; outs)</P><P>at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)</P><P>at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)</P><P>Exception rethrown at &#091;0&#093;: </P><P>at IdeaBlade.EntityModel.RemoteEntityServerProxy.CheckConnection(Exception pException)</P><P>at IdeaBlade.EntityModel.EntityServerProxy.SaveChanges(SessionBundle sessionBundle, EntityCache entityCache, SaveOptions saveOptions)</P><P>at IdeaBlade.EntityModel.EntityManager.SaveEntitiesCore(SaveWorkState workstate)</P><P>--- End of inner exception stack trace ---</P><P>at IdeaBlade.EntityModel.EntityManager.HandleSaveResultException(SaveWorkState saveWorkState, SaveOptions saveOptions, Boolean isAsyncOp)</P><P>at IdeaBlade.EntityModel.EntityManager.SaveChangesCore(IEnumerable entities, SaveOptions saveOptions)</P><P>at IdeaBlade.EntityModel.EntityManager.SaveChanges(IEnumerable entities, SaveOptions saveOptions)</P><P>at IdeaBlade.EntityModel.EntityManager.SaveChanges()</P><P>at EntityQuery_Tester.Program.Test1(DomainModelEntityManager em) in C:\Documents and Settings\Dan\My Documents\~Dev\BOTS\Test Projects\EntityQuery Tester\Program.cs:line 174</P></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 09 Jun 2009 16:22:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1315&amp;PID=4740#4740</guid>
  </item> 
 </channel>
</rss>