<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/221705.aspx</link><pubDate>Tue, 19 May 2009 14:36:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:221705</guid><dc:creator>mbaocha</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/221705.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=221705</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;thanks for posting these here. It really helped. Silverlight is the way to go. Buts so much headache debugging all those errors.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;________________________&lt;br /&gt;
 
  Normal
  0
  
  
  false
  false
  false
  
   
   
   
   
   
  
  MicrosoftInternetExplorer4
 

 
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:&amp;quot;Times New Roman&amp;quot;;
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}



&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-size:9pt;"&gt;&lt;a href="http://www.rnetwebhosting.com/"&gt;Cheap Affordable Web Hosting&lt;/a&gt; | &lt;a href="http://www.rnetwebhosting.com/"&gt;Web &lt;span&gt;&amp;nbsp;&lt;/span&gt;Hosting Nigeria&lt;/a&gt; | &lt;a href="http://www.rnetwebhosting.com/web-design/"&gt;Best Web Design Company&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

 &lt;br /&gt;</description></item><item><title>Re: Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/221642.aspx</link><pubDate>Tue, 19 May 2009 12:32:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:221642</guid><dc:creator>davidezordan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/221642.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=221642</wfw:commentRss><description>&lt;p&gt;Please refer to the on-line documentation for creating and handling faults with Silverlight 3: &lt;a href="http://msdn.microsoft.com/en-us/library/dd470096(VS.96).aspx"&gt;http://msdn.microsoft.com/en-us/library/dd470096(VS.96).aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/164258.aspx</link><pubDate>Wed, 21 Jan 2009 22:54:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:164258</guid><dc:creator>davidezordan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/164258.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=164258</wfw:commentRss><description>&lt;p&gt;As reported by Eugene Osovetsky in his great article, a sample implementation of SOAP faults can be found here: &lt;a href="http://code.msdn.microsoft.com/silverlightws/Release/ProjectReleases.aspx?ReleaseId=1660"&gt;http://code.msdn.microsoft.com/silverlightws/Release/ProjectReleases.aspx?ReleaseId=1660&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/164228.aspx</link><pubDate>Wed, 21 Jan 2009 22:09:15 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:164228</guid><dc:creator>GLittle95</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/164228.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=164228</wfw:commentRss><description>Eugene Osovetsky explains the issues well here:&lt;br /&gt;&lt;p&gt;&lt;a href="http://eugeneos.blogspot.com/2008/09/faults-and-exceptions-when-using-web.html" title="Faults and Exceptions when using Web Services in Silverlight 2"&gt;Faults and Exceptions when using Web Services in Silverlight 2&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/87275.aspx</link><pubDate>Sat, 06 Sep 2008 07:06:39 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:87275</guid><dc:creator>jemiller</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/87275.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=87275</wfw:commentRss><description>&lt;p&gt;It looks like faults still don&amp;#39;t work in Silverlight Beta 2? What I&amp;#39;m seeing is WCF returns a 500 with the fault in it, but, Silverlight reports it as a 404?&lt;/p&gt;
&lt;p&gt;System.ServiceModel.ProtocolException was unhandled by user code&lt;br /&gt;&amp;nbsp; Message=&lt;span class="st"&gt;&amp;quot;The remote server returned an unexpected response: (404) Not Found.&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; StackTrace:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at DisplaysSilverlightApplication.ServiceReference1.ServiceClient.ServiceClientChannel.EndSaveRole(IAsyncResult result)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at DisplaysSilverlightApplication.ServiceReference1.ServiceClient.DisplaysSilverlightApplication.ServiceReference1.Service.EndSaveRole(IAsyncResult result)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at DisplaysSilverlightApplication.ServiceReference1.ServiceClient.OnEndSaveRole(IAsyncResult result)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)&lt;br /&gt;&amp;nbsp; InnerException:&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I wonder if the part about having to convert 500s to 200s has something to do with a limitation in the browser &amp;quot;network stack?&amp;quot; I think this is what Adobe claims with Flex.&lt;/p&gt;
&lt;p&gt;On a related note, someone in another thread mentioned something about how Microsoft was trying to extend the standard for the browser network stack? Is there such a standard? If so, where is it defined?&amp;nbsp;I find it confusing that a browser has such a thing. I don&amp;#39;t know why they don&amp;#39;t just use normal socket calls. The whole business about all network calls, even socket calls having to be async is quite annoying also.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/45152.aspx</link><pubDate>Wed, 09 Apr 2008 13:03:04 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:45152</guid><dc:creator>aaronc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/45152.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=45152</wfw:commentRss><description>&lt;p&gt;Actually I think using an out parameter is going to be good enough for me.&lt;/p&gt;
&lt;p&gt;public MyClass WebService(string param1, string param2, out string error)&lt;/p&gt;
&lt;p&gt;Silverlight has no problems getting back the error out parameter and while it means the interface will need a change when exceptions are properly supported it will be a quick job since the proxy is autogenerated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Aaron&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/45137.aspx</link><pubDate>Wed, 09 Apr 2008 10:55:01 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:45137</guid><dc:creator>aaronc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/45137.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=45137</wfw:commentRss><description>&lt;p&gt;Where abouts do you have the exception handler code on the Siverlight side? Is it before or after the auto-generated service proxy?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Aaron&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/45076.aspx</link><pubDate>Wed, 09 Apr 2008 05:33:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:45076</guid><dc:creator>MichaelGG</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/45076.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=45076</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Here is the exact code I have in a production system and it works fine in conjunction with the rest of the code:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Application_EndRequest(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // In all fairness, I was drinking eiswein at the time&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Context.Items.Contains(&amp;quot;HackFault&amp;quot;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.ContentType = &amp;quot;text/xml&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.StatusCode = 200;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.ClearContent();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var hackEx = Context.Items[&amp;quot;HackFault&amp;quot;] as Exception;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var hackFaultXml = string.Format(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;&amp;lt;s:Envelope xmlns:s=\&amp;quot;&lt;a href="http://schemas.xmlsoap.org/soap/envelope//%22%3E%3Cs:Body%3E%3C%7B0"&gt;http://schemas.xmlsoap.org/soap/envelope/\&amp;quot;&amp;gt;&amp;lt;s:Body&amp;gt;&amp;lt;{0&lt;/a&gt;} xmlns=\&amp;quot;{1}\&amp;quot; /&amp;gt;&amp;lt;/s:Body&amp;gt;&amp;lt;/s:Envelope&amp;gt;&amp;quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hackEx.GetType().ToString(), Context.Server.HtmlEncode(hackEx.Message));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.Output.Write(hackFaultXml);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/45067.aspx</link><pubDate>Wed, 09 Apr 2008 04:52:59 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:45067</guid><dc:creator>aaronc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/45067.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=45067</wfw:commentRss><description>&lt;p&gt;Does using the following script for global.asax&amp;nbsp;generate an exception in Silverlight?&lt;/p&gt;
&lt;p&gt;&amp;lt;script runat=&amp;quot;server&amp;quot; language=&amp;quot;c#&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;protected void Application_EndRequest(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Context.Response.StatusCode == 500) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.ContentType = &amp;quot;text/xml&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.StatusCode = 200;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.ClearContent();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string soapFault =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;&amp;lt;soap:Envelope xmlns:soap=\&amp;quot;&lt;a href="http://schemas.xmlsoap.org/soap/envelope//"&gt;http://schemas.xmlsoap.org/soap/envelope/\&lt;/a&gt;&amp;quot;&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot; &amp;lt;soap:Body&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;&amp;nbsp; &amp;lt;SomeNS.SomeClass xmlns=\&amp;quot;test 1 2 3 4\&amp;quot; /&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot; &amp;lt;/soap:Body&amp;gt;&amp;quot; +&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;&amp;lt;/soap:Envelope&amp;gt;&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.Response.Output.Write(soapFault);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;For me it gets accepted and puts a System.NullReferenceException into e.Error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards,&lt;/p&gt;
&lt;p&gt;Aaron&lt;/p&gt;</description></item><item><title>Re: Re: Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/45061.aspx</link><pubDate>Wed, 09 Apr 2008 04:12:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:45061</guid><dc:creator>aaronc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/45061.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=45061</wfw:commentRss><description>&lt;p&gt;If I send back valid XML from global.asax I don&amp;#39;t get an exception until I try and use the result object which is where the NullReference comes in.&lt;/p&gt;
&lt;p&gt;If I send back invalid XML from global.asax I get a stack trace of:&lt;/p&gt;
&lt;p&gt;{System.Xml.XmlException: [Xml_TagMismatch]&lt;br /&gt;Arguments:faultstring,1,soap:Fault&lt;br /&gt;Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See &lt;a href="http://go.microsoft.com/fwlink/?linkid=106663&amp;amp;Version=2.0.30226.2&amp;amp;File=System.Xml.dll&amp;amp;Key=Xml_TagMismatch"&gt;http://go.microsoft.com/fwlink/?linkid=106663&amp;amp;Version=2.0.30226.2&amp;amp;File=System.Xml.dll&amp;amp;Key=Xml_TagMismatch&lt;/a&gt; [Xml_ErrorPosition]&lt;br /&gt;Arguments:1,187&lt;br /&gt;Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See &lt;a href="http://go.microsoft.com/fwlink/?linkid=106663&amp;amp;Version=2.0.30226.2&amp;amp;File=System.Xml.dll&amp;amp;Key=Xml_ErrorPosition"&gt;http://go.microsoft.com/fwlink/?linkid=106663&amp;amp;Version=2.0.30226.2&amp;amp;File=System.Xml.dll&amp;amp;Key=Xml_ErrorPosition&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Throw(Exception e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.ParseEndElement()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.ParseElementContent()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Read()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlDictionaryReader.XmlWrappedReader.Read()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlReader.SkipSubtree()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlReader.Skip()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Dispatcher.OperationFormatter.TraceAndSkipElement(XmlReader xmlReader)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameters(XmlDictionaryReader reader, PartInfo[] parts, Object[] parameters, Boolean isRequest)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply(Message message, Object[] parameters)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Dispatcher.ProxyOperationRuntime.AfterReply(ProxyRpc&amp;amp; rpc)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc&amp;amp; rpc)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at&lt;/p&gt;
&lt;p&gt;I&amp;#39;m playing around with sending back different payloads from global.asax to try and somehow get an exception thrown with the payload in the e.Error.Message but so far haven&amp;#39;t been able to. An example of a payload I&amp;#39;ve tried sending is:&lt;/p&gt;&lt;font size="1"&gt;
&lt;p&gt;&amp;lt;soap:Envelope xmlns:soap=&amp;quot;http://schemas.xmlsoap.org/soap/envelope/&amp;quot;&amp;gt; &amp;lt;soap:Body&amp;gt; &amp;lt;soap:Fault&amp;gt;&amp;lt;faultcode&amp;gt;soap:Server&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;Test fault message&amp;lt;/faultstring&amp;gt;&amp;lt;detail /&amp;gt;&amp;lt;/soap:Fault&amp;gt; &amp;lt;/soap:Body&amp;gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Aaron&lt;/p&gt;</description></item><item><title>Re: Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/45057.aspx</link><pubDate>Wed, 09 Apr 2008 03:44:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:45057</guid><dc:creator>MichaelGG</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/45057.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=45057</wfw:commentRss><description>&lt;p&gt;I have sample code on my site. But no, I didn&amp;#39;t have to do anything that I recall. Can you post a full stacktrace?&lt;/p&gt;</description></item><item><title>Re: Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/45053.aspx</link><pubDate>Wed, 09 Apr 2008 03:26:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:45053</guid><dc:creator>aaronc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/45053.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=45053</wfw:commentRss><description>&lt;p&gt;Is there any trick to getting the &lt;font face="Courier New"&gt;System.Runtime.Serialization.SerializationException exception in the Silverlight proxy?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m modifying the response code from 500 to 200 on the reponses being sent to Silverlight but instead of the SerializationException I&amp;#39;m getting a NullReferenceException presumamby when Silverlight tries and fails to deserialise the return object from the response.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Aaron&lt;/p&gt;</description></item><item><title>Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/41556.aspx</link><pubDate>Thu, 27 Mar 2008 07:21:56 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:41556</guid><dc:creator>MichaelGG</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/41556.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=41556</wfw:commentRss><description>&lt;p&gt;Well I got a cheap hackaround to at least allow some faulting with Silverlight: &lt;a href="http://www.atrevido.net/blog/2008/03/27/Hacking+SOAP+Faults+Into+Silverlight+2+Beta+1.aspx"&gt;http://www.atrevido.net/blog/2008/03/27/Hacking+SOAP+Faults+Into+Silverlight+2+Beta+1.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s cheap, it&amp;#39;s hacky, but it gives me enough to deal with until Beta 2.&lt;/p&gt;</description></item><item><title>Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/41281.aspx</link><pubDate>Wed, 26 Mar 2008 16:52:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:41281</guid><dc:creator>Kim Johnson</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/41281.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=41281</wfw:commentRss><description>&lt;p&gt;We&amp;#39;re really hoping to see FaultException&amp;lt;T&amp;gt; / FaultContract support too - having to add an error code to every return type is not a good answer.&amp;nbsp; Hope to see this&amp;nbsp;fixed in Beta2 - ??&lt;/p&gt;</description></item><item><title>Re: SL WCF can't handle faults?</title><link>http://forums.silverlight.net/forums/thread/41141.aspx</link><pubDate>Wed, 26 Mar 2008 08:59:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:41141</guid><dc:creator>MichaelGG</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/41141.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=41141</wfw:commentRss><description>&lt;p&gt;I tried adding a typed fault to my service, just on the off-chance that this somehow would help. Turns out Silverlight 2 Beta 1 doesn&amp;#39;t even have the bits necesary to reference such a service.&lt;/p&gt;
&lt;p&gt;I get the FaultContractAttribute applied to the generated interface in SL, but apparently that type doesn&amp;#39;t exist. So I&amp;#39;m guessing that yes, fault support is nowhere to be found (despite the fact that FaultException exists).&lt;/p&gt;
&lt;p&gt;I guess I just have to wait &amp;#39;till Beta 2?&lt;/p&gt;
&lt;p&gt;-Michael&lt;/p&gt;</description></item></channel></rss>