<?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 : Serialization exception on derived LoginException</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Serialization exception on derived LoginException</description>
  <pubDate>Sat, 11 Apr 2026 02:39:54 -700</pubDate>
  <lastBuildDate>Thu, 22 Aug 2013 14:12:17 -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=4116</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>Serialization exception on derived LoginException : I think I figured it out. I needed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16763#16763</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1009" rel="nofollow">JohnBloom</a><br /><strong>Subject:</strong> 4116<br /><strong>Posted:</strong> 22-Aug-2013 at 2:12pm<br /><br />I think I figured it out. I needed to inherit from EntityServerException.]]>
   </description>
   <pubDate>Thu, 22 Aug 2013 14:12:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16763#16763</guid>
  </item> 
  <item>
   <title>Serialization exception on derived LoginException : Does this problem only exist for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16762#16762</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1009" rel="nofollow">JohnBloom</a><br /><strong>Subject:</strong> 4116<br /><strong>Posted:</strong> 22-Aug-2013 at 1:20pm<br /><br />Does this problem only exist for LoginException or does it block all custom exceptions even ones inheriting from System.Exception? I am on 7.1.0.0 and am hitting an error when I add my custom exception as a known type. I believe I followed all of the rules and so I am wondering if I need to upgrade because of the bug or if I am just not doing it right.&nbsp;<div><br></div><div><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;">&#091;<span style="color:#2b91af;">DataContract</span>&#093;|<span style="color: green; line-height: 1.4;">//&#091;DiscoverableType(DiscoverableTypeMode.KnownType)&#093;</span></pre><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;">&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">class</span>&nbsp;<span style="color:#2b91af;">MyException</span>&nbsp;:&nbsp;<span style="color:#2b91af;">Exception</span>&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color:#2b91af;">DataMember</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">int</span>&nbsp;Code&nbsp;{&nbsp;<span style="color:blue;">get</span>;&nbsp;<span style="color:blue;">set</span>;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;MyException(<span style="color:blue;">string</span>&nbsp;message,&nbsp;<span style="color:#2b91af;">Dictionary</span>&lt;<span style="color:blue;">string</span>,&nbsp;<span style="color:blue;">object</span>&gt;&nbsp;userData)&nbsp;:&nbsp;<span style="color:blue;">base</span>(message)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Code&nbsp;=&nbsp;(<span style="color:blue;">int</span>)&nbsp;userData&#091;<span style="color:#a31515;">"Code"</span>&#093;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:green;">//used&nbsp;for&nbsp;serialization</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;MyException(<span style="color:blue;">string</span>&nbsp;message,&nbsp;<span style="color:blue;">int</span>&nbsp;code)&nbsp;:&nbsp;<span style="color:blue;">base</span>(message)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Code&nbsp;=&nbsp;code;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;}</pre><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;">If I uncomment that code the EntityServer will fail to start because it is not able to serialize MyException.</pre></div>]]>
   </description>
   <pubDate>Thu, 22 Aug 2013 13:20:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16762#16762</guid>
  </item> 
  <item>
   <title>Serialization exception on derived LoginException : thanks kimjI will try as soon...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16277#16277</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1623" rel="nofollow">kdev</a><br /><strong>Subject:</strong> 4116<br /><strong>Posted:</strong> 01-May-2013 at 12:25am<br /><br />thanks kimj<div><br></div><div>I will try as soon as Cocktail will update it's dependencies to Devforce</div>]]>
   </description>
   <pubDate>Wed, 01 May 2013 00:25:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16277#16277</guid>
  </item> 
  <item>
   <title>Serialization exception on derived LoginException : kdev, this was fixed in the 7.1.2...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16274#16274</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> 4116<br /><strong>Posted:</strong> 30-Apr-2013 at 5:56pm<br /><br />kdev, this was fixed in the 7.1.2 release now available.]]>
   </description>
   <pubDate>Tue, 30 Apr 2013 17:56:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16274#16274</guid>
  </item> 
  <item>
   <title>Serialization exception on derived LoginException : Unfortunately, this is due to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16227#16227</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> 4116<br /><strong>Posted:</strong> 15-Apr-2013 at 5:14pm<br /><br />Unfortunately, this is due to a bug.  It looks like our reflection provider is not correctly handling the properties on LoginException sub-classes and causing a serialization problem.  Afraid I can't think of a workaround.<br /><br />We'll get this fixed in the next release, date TBD.]]>
   </description>
   <pubDate>Mon, 15 Apr 2013 17:14:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16227#16227</guid>
  </item> 
  <item>
   <title>Serialization exception on derived LoginException : Hi,I created my own LoginException...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16224#16224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1623" rel="nofollow">kdev</a><br /><strong>Subject:</strong> 4116<br /><strong>Posted:</strong> 15-Apr-2013 at 10:13am<br /><br />Hi,<div><br></div><div><br></div><div>I created my own LoginException but I every time I throw it get this error on the client (Silverlight 5) :</div><div><b>"The Login could not be completed because the server did not respond. Check that the server is available and contains a clientApplicationType configuration setting which supports this application."</b></div><div><br></div><div>Then I took the sample code from here <a href="http://drc.ideablade.com/devforce-2012/bin/view/&#068;ocumentati&#111;n/authenticati&#111;n-details-custom" target="_blank">http://drc.ideablade.com/devforce-2012/bin/view/Documentation/authentication-details-custom</a>&nbsp;to check my code and I still get the same error.&nbsp;<span style="line-height: 1.4;">(The class is defined on both the server and client)</span></div><div><br></div><div>On the log it seems there is a problem with the Serialization.</div><div><br></div><div><div><table width="99%"><tr><td><pre class="BBcode"></div><div></div><div>Une exception de première chance de type 'Common.CustomLoginException' s'est produite dans Security.Domain.Services.tn.dll</div><div>Une exception de première chance de type 'Common.CustomLoginException' s'est produite dans IdeaBlade.EntityModel.Server.dll</div><div>Une exception de première chance de type 'Common.CustomLoginException' s'est produite dans System.ServiceModel.dll</div><div>Une exception de première chance de type 'Common.CustomLoginException' s'est produite dans System.ServiceModel.dll</div><div><b><font color="#ff0000">Une exception de première chance de type 'System.Runtime.Serialization.SerializationException' s'est produite dans System.Runtime.Serialization.dll</font></b></div></div><div><div></pre></td></tr></table></div><div></div></div><div><br></div><div>My web.config configuration looks like this :</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&lt;ideablade.configuration xmlns="http://schemas.ideablade.com/2010/IdeaBladeConfig" version="6.00" clientApplicationType="Silverlight"&gt;</div><div>&nbsp; &nbsp; &lt;logging logFile="log\DebugLog.xml" port="9922" serviceName="TracePublisher" archiveLogs="false" /&gt;</div><div>&nbsp; &nbsp; &lt;objectServer&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;serverSettings useAspNetSecurityServices="false" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;serverSettings allowAnonymousLogin="false" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;serverSettings supportedClientApplicationType="Silverlight"/&gt;</div><div>&nbsp; &nbsp; &lt;/objectServer&gt;</div><div>&nbsp; &nbsp; &lt;!-- See the DevForce Resource Center for more information on configuration settings:</div><div><span ="Apple-tab-span" style="white-space:pre">	</span> http://drc.ideablade.com/devforce-2012/bin/view/Documentation/deploy-iis#HConfiguration</div><div>&nbsp; &nbsp; --&gt;</div><div>&nbsp; &lt;/ideablade.configuration&gt;</div></div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Mon, 15 Apr 2013 10:13:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4116&amp;PID=16224#16224</guid>
  </item> 
 </channel>
</rss>