<?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: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/199768.aspx</link><pubDate>Wed, 01 Apr 2009 20:46:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:199768</guid><dc:creator>fatihpiristine</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/199768.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=199768</wfw:commentRss><description>&lt;p&gt;is it happening when you closing the browser window? if yes, on browser exit, it disposes everything before it exists.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;i can suggest you to do one thing to try this out, run your solution with firefox, from firebug modify silverlight object position property to absolute,&lt;/p&gt;&lt;p&gt;it will exit and run the application again, if you are not getting this error, then it is related to browser window.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/199556.aspx</link><pubDate>Wed, 01 Apr 2009 15:01:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:199556</guid><dc:creator>kobruleht</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/199556.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=199556</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;I tried &amp;nbsp;to call it at application exit event handler using&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;AjaxCall&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MakeCall(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Stockservice.asmx&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Logout&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;but got InvalidOperationException at line&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;XMLHttpRequest.Invoke(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;open&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, Method.ToUpper(), Url, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;How to fix ?&lt;/p&gt;
&lt;p&gt;Andrus.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;System.InvalidOperationException was unhandled by user code&lt;br /&gt;&amp;nbsp; Message=&amp;quot;Invalid argument.&amp;quot;&lt;br /&gt;&amp;nbsp; StackTrace:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.Browser.ScriptObject.Invoke(String name, Object[] args)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at SyncCall.AjaxCall.MakeCall(String Url, String Method)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at AWSilverlightLOB.App.Application_Exit(Object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)&lt;br /&gt;&amp;nbsp; InnerException: &lt;br /&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/163859.aspx</link><pubDate>Wed, 21 Jan 2009 07:09:27 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:163859</guid><dc:creator>samcov</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/163859.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=163859</wfw:commentRss><description>&lt;p&gt;This appears to only be able to do a &amp;quot;GET&amp;quot;, request, and not a &amp;quot;POST&amp;quot;.&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/163735.aspx</link><pubDate>Wed, 21 Jan 2009 00:01:20 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:163735</guid><dc:creator>fatihpiristine</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/163735.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=163735</wfw:commentRss><description>&lt;font color="#000000" size="3"&gt;&lt;span class="kwd"&gt;&lt;strong&gt;I have modified the code to make it work with ie6, ie5.5 etc. here is the code. &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span class="kwd"&gt;&lt;strong&gt;have test on IE6, IE7, FF2, FF3, Opera and Safari. worked fine. &lt;br /&gt;you may need clientaccesspolicy.xml link: &lt;/strong&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx"&gt;&lt;strong&gt;http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx&lt;/strong&gt;&lt;/a&gt; &amp;nbsp;&lt;/span&gt; &lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;namespace&lt;/span&gt; SyncCall
{
    &lt;span class="kwd"&gt;public class&lt;/span&gt; AjaxCall
    {
        &lt;span class="kwd"&gt;protected static&lt;/span&gt; System.Windows.Browser.ScriptObject XMLHttpRequest;
        &lt;span class="kwd"&gt;protected static&lt;/span&gt; System.String Result = System.String.Empty;
        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Makes XMLHttpRequest
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name=&amp;quot;Url&amp;quot;&amp;gt;relative or absolute url as string&amp;lt;/param&amp;gt;
        /// &amp;lt;param name=&amp;quot;Method&amp;quot;&amp;gt;GET or POST&amp;lt;/param&amp;gt;&lt;/span&gt;
        &lt;span class="kwd"&gt;public static void&lt;/span&gt; MakeCall(&lt;span class="kwd"&gt;string&lt;/span&gt; Url, &lt;span class="kwd"&gt;string&lt;/span&gt; Method)
        {
            &lt;span class="cmt"&gt;// Backward compat&lt;/span&gt;
            System.Windows.Browser.HtmlPage.Window.Eval(&lt;span class="st"&gt;&amp;quot;if(typeof XMLHttpRequest==\&amp;quot;&lt;/span&gt;undefined\&lt;span class="st"&gt;&amp;quot;){XMLHttpRequest=function(){var a=[\&amp;quot;&lt;/span&gt;Microsoft.XMLHTTP\&lt;span class="st"&gt;&amp;quot;,\&amp;quot;&lt;/span&gt;MSXML2.XMLHTTP\&lt;span class="st"&gt;&amp;quot;,\&amp;quot;&lt;/span&gt;MSXML2.XMLHTTP.3.0\&lt;span class="st"&gt;&amp;quot;,\&amp;quot;&lt;/span&gt;Msxml3.XMLHTTP\&lt;span class="st"&gt;&amp;quot;];for(var b=0;b&amp;lt;a.length;b++){try{return new ActiveXObject(a[ b ]);}catch(ex){}}};}&amp;quot;&lt;/span&gt;);
            &lt;span class="cmt"&gt;// create the instance&lt;/span&gt;
            XMLHttpRequest = System.Windows.Browser.HtmlPage.Window.CreateInstance(&lt;span class="st"&gt;&amp;quot;XMLHttpRequest&amp;quot;&lt;/span&gt;);
            &lt;span class="cmt"&gt;// request data from server&lt;/span&gt;
            XMLHttpRequest.Invoke(&lt;span class="st"&gt;&amp;quot;open&amp;quot;&lt;/span&gt;, Method.ToUpper(), Url, &lt;span class="kwd"&gt;false&lt;/span&gt;);
            &lt;span class="cmt"&gt;// send. !!! do not replace it with &amp;quot;null&amp;quot; as it throws exception&lt;/span&gt;
            XMLHttpRequest.Invoke(&lt;span class="st"&gt;&amp;quot;send&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;&amp;quot;&lt;/span&gt;);
            &lt;span class="cmt"&gt;// get result as string. as gecko based browsers does not return xml&lt;/span&gt;
            Result = XMLHttpRequest.GetProperty(&lt;span class="st"&gt;&amp;quot;responseText&amp;quot;&lt;/span&gt;).ToString();
        }
        &lt;span class="cmt"&gt;/// &amp;lt;summary&amp;gt;
        /// Returns result from request as string
        /// &amp;lt;/summary&amp;gt;&lt;/span&gt;
        &lt;span class="kwd"&gt;public static&lt;/span&gt; System.String GetResult()
        {
            &lt;span class="kwd"&gt;return&lt;/span&gt; Result.ToString();
        }
    }
}&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="coloredcode"&gt;&amp;nbsp;&lt;/pre&gt;&lt;/font&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/163732.aspx</link><pubDate>Tue, 20 Jan 2009 23:46:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:163732</guid><dc:creator>samcov</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/163732.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=163732</wfw:commentRss><description>&lt;p&gt;Could you format that better, or attach a project?&lt;/p&gt;
&lt;p&gt;Sam...&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/163715.aspx</link><pubDate>Tue, 20 Jan 2009 23:36:32 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:163715</guid><dc:creator>fatihpiristine</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/163715.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=163715</wfw:commentRss><description>&lt;p&gt;code is below&lt;a href="http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx"&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/50503.aspx</link><pubDate>Thu, 01 May 2008 10:06:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:50503</guid><dc:creator>vchoudhary</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/50503.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=50503</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;If I want to use this code in an application that uses cross domain policies,then what changes should I make in the code so that the code works properly.&lt;/p&gt;&lt;p&gt;Or is there any other method by which the same error gets removed in application that uses cross domain policies&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/38161.aspx</link><pubDate>Mon, 17 Mar 2008 20:44:17 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38161</guid><dc:creator>jackbond</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38161.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38161</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;Psychlist1972:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;it should be said that this doesn&amp;#39;t support some of new things in SL2 like cross-domain policies or anything MSFT does with secure service calls in the future.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Unfortunate, but true. I developed this code because there was no way to call a web service during application exit. I actually hope in the next beta, or sometime before RTM this code becomes entirely irrelevant. I fear however that this code is going to get a lot of usage.&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/38044.aspx</link><pubDate>Mon, 17 Mar 2008 14:21:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38044</guid><dc:creator>Psychlist1972</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38044.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38044</wfw:commentRss><description>&lt;p&gt;Very nicely done. :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For other folks who may stumble on this code in the future, though, it should be said that this doesn&amp;#39;t support some of new things in SL2 like cross-domain policies or anything MSFT does with secure service calls in the future. Often not a deal-killer, but useful to know.&lt;/p&gt;
&lt;p&gt;Pete&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/38038.aspx</link><pubDate>Mon, 17 Mar 2008 14:14:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38038</guid><dc:creator>timstallc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38038.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=38038</wfw:commentRss><description>&lt;p&gt;Yes! Works perfectly in both. I also love how clean and simple it now is.&lt;/p&gt;
&lt;p&gt;Thanks so much&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/37863.aspx</link><pubDate>Mon, 17 Mar 2008 04:16:28 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37863</guid><dc:creator>jackbond</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37863.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=37863</wfw:commentRss><description>&lt;p&gt;Tim, I think you are going to be&amp;nbsp;VERY happy when you run this code:&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#400080" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#400080" size="2"&gt;static&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#400080" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#010001" size="2"&gt;DownloadXmlStringSync&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#400080" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#010001" size="2"&gt;url&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;blockquote&gt;&lt;/font&gt;&lt;font color="#305fb6" size="2"&gt;ScriptObject&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#305fb6" size="2"&gt;HtmlPage&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;Window&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;CreateInstance&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;XMLHttpRequest&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;Invoke&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;open&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;GET&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#010001" size="2"&gt;url&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#400080" size="2"&gt;false&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;Invoke&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;send&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;&lt;font color="#400080" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#400080" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;GetProperty&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;responseText&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/blockquote&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;As for why it worked for some people and not others: Firebug&amp;nbsp;has its own &lt;a class="" title="observer effect" href="http://en.wikipedia.org/wiki/Observer_effect" target="_blank"&gt;observer effect&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/37839.aspx</link><pubDate>Mon, 17 Mar 2008 01:58:21 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37839</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37839.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=37839</wfw:commentRss><description>&lt;p&gt;I used this wrapper for communicating with Astoria from Silverlight (You can read it &lt;a href="http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1"&gt;here&lt;/a&gt;.) Some said that they are having the problem.. &lt;/p&gt;&lt;p&gt;I get the following error when deleting or updating&lt;/p&gt;
&lt;p&gt;An exception of type ‘System.ArgumentException’ occurred in System.Windows.Browser.dll but was not handled in user code&lt;/p&gt;
&lt;p&gt;Additional information: [ScriptObject_TypeDoesNotExist]&lt;br /&gt;
Arguments:XMLHttpRequest&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=8.0.30226.2&amp;amp;File=System.Windows.Browser.dll&amp;amp;Key=ScriptObject_TypeDoesNotExist" rel="nofollow"&gt;http://go.microsoft.com/fwlink/?linkid=106663&amp;amp;Version=8.0.30226.2&amp;amp;File=System.Windows.Browser.dll&amp;amp;Key=ScriptObject_TypeDoesNotExist&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I can’t retrieve the data too, error on this line&lt;br /&gt;
_xmlHttpRequest = HtmlPage.Window.CreateInstance(”XMLHttpRequest”);&lt;/p&gt;
&lt;p&gt;{System.ArgumentException: [ScriptObject_TypeDoesNotExist]&lt;br /&gt;
Arguments:XMLHttpRequest&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=8.0.30226.2&amp;amp;File=System.Windows.Browser.dll&amp;amp;Key=ScriptObject_TypeDoesNotExist" rel="nofollow"&gt;http://go.microsoft.com/fwlink/?linkid=106663&amp;amp;Version=8.0.30226.2&amp;amp;File=System.Windows.Browser.dll&amp;amp;Key=ScriptObject_TypeDoesNotExist&lt;/a&gt;&lt;br /&gt;
Parameter name: typeName&lt;br /&gt;
   at System.Windows.Browser.HtmlWindow.CreateInstance(String typeName, Object[] args)&lt;br /&gt;
   at SL2Astoria.XMLHttpRequestWrapper.DoPost(Uri url, String httpVerb, String param)&lt;br /&gt;
   at SL2Astoria.XMLHttpRequestWrapper.DoPost(Uri url, String httpVerb)&lt;br /&gt;
   at SL2Astoria.Page.retrieveButton_Click(Object sender, RoutedEventArgs e)}&lt;/p&gt;&lt;p&gt;Actually, I mentioned three operations (Insert, delete and retrieve) in that article.&amp;nbsp; that guy is having some problems in deleting. I&amp;#39;m not sure why. It is working on my machine.. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/37803.aspx</link><pubDate>Sun, 16 Mar 2008 22:08:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37803</guid><dc:creator>jackbond</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37803.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=37803</wfw:commentRss><description>&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got so many dev environments, that I got mixed up which version of Firefox I was running. It is actually working on Firefox 2.0.0.12 for me with the following code:&lt;/p&gt;&lt;font color="#010001" size="2"&gt;&lt;font color="#400080" size="2"&gt;&lt;font color="#400080" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#400080" size="2"&gt;static&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#400080" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#010001" size="2"&gt;DownloadXmlStringSync&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#400080" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#010001" size="2"&gt;url&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;&lt;font color="#400080" size="2"&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#305fb6" size="2"&gt;ScriptObject&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#305fb6" size="2"&gt;HtmlPage&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;Window&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;CreateInstance&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;XMLHttpRequest&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;Invoke&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;open&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;GET&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#010001" size="2"&gt;url&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#400080" size="2"&gt;false&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;Invoke&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;send&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;&lt;font color="#400080" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#400080" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;GetProperty&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;responseText&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Are you able to set a breakpoint on the server to see if the request is actually making it through?&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/37776.aspx</link><pubDate>Sun, 16 Mar 2008 18:50:57 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37776</guid><dc:creator>timstallc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37776.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=37776</wfw:commentRss><description>&lt;p&gt;Thanks for the new code. It works great in IE, but still no luck in FireFox 2.0. &lt;/p&gt;
&lt;p&gt;It fails again on the same like: &lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.Invoke(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;send&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;Similar error: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; [ScriptObject_InvokeFailed]\r\nArguments:\r\nDebugging resource strings are unavailable&lt;/p&gt;
&lt;p&gt;I see what you&amp;#39;re trying to do, and it makes sense (calling XmlHttpRequest, similar to what ajax does in a browser), but still no luck on FF 2.0.&amp;nbsp; Is there anything else I can provide to shed some light?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item><item><title>Re: How to make this just return an xml string (not even call a web service)?</title><link>http://forums.silverlight.net/forums/thread/37650.aspx</link><pubDate>Sun, 16 Mar 2008 04:19:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37650</guid><dc:creator>jackbond</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37650.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=37650</wfw:commentRss><description>&lt;p&gt;Try this:&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#305fb6" size="2"&gt;ScriptObject&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#305fb6" size="2"&gt;ScriptObject&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#010001" size="2"&gt;dom&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#400080" size="2"&gt;try&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#305fb6" size="2"&gt;HtmlPage&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;Window&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;CreateInstance&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;XMLHttpRequest&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;Invoke&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;open&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;GET&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#010001" size="2"&gt;url&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#400080" size="2"&gt;false&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;Invoke&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;send&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#010001" size="2"&gt;dom&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;=&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#305fb6" size="2"&gt;ScriptObject&lt;/font&gt;&lt;font size="2"&gt;) &lt;/font&gt;&lt;font color="#010001" size="2"&gt;request&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;GetProperty&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;responseXML&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;&lt;font color="#400080" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#400080" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#010001" size="2"&gt;dom&lt;/font&gt;&lt;font color="#2e53d1" size="2"&gt;.&lt;/font&gt;&lt;font color="#010001" size="2"&gt;GetProperty&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;b&gt;&lt;font color="#259241" size="2"&gt;&amp;quot;xml&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#400080" size="2"&gt;catch&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#305fb6" size="2"&gt;Exception&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#010001" size="2"&gt;ex&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#400080" size="2"&gt;throw&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>