<?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>Report a Silverlight Bug</title><link>http://forums.silverlight.net/forums/28.aspx</link><description>Found a bug in Silverlight? Use this forum to describe the bug and the code or steps to reproduce it.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/124360.aspx</link><pubDate>Tue, 04 Nov 2008 13:41:37 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:124360</guid><dc:creator>twinae</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/124360.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=124360</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello, I am new with Silverlight and while trying to work with HttpWebRequest and ADO.Net Data Service I get the same problems mentioned here.I am working with the last release of Silverlight.Do you know if this issue was solved somehow in this final release?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you in advance for the response. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/40767.aspx</link><pubDate>Tue, 25 Mar 2008 09:37:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:40767</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/40767.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=40767</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;jjy2:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Michael, you&amp;nbsp;were right. &lt;br /&gt;it&amp;#39;s good to know definite answer :-)&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Yes. but it&amp;#39;s also good to know the workarounds too.&amp;nbsp; I want to say &amp;quot;thank you&amp;quot; for the workarounds that you mentioned. :) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/40760.aspx</link><pubDate>Tue, 25 Mar 2008 09:23:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:40760</guid><dc:creator>jjy2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/40760.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=40760</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;mchlsync:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Is this an issue of Silverlight or&amp;nbsp; ASP.NET development server (casini)? I guess, it might be some issues with ASP.NET development server. Because if it&amp;#39;s an issue of Silverlight, it should not work with IIS too. &lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Maybe unsupported MIME type generates status code something rather than 200 in cassini?&lt;br /&gt;&lt;br /&gt;Michael, you&amp;nbsp;were right. &lt;br /&gt;it&amp;#39;s good to know definite answer :-) &lt;img src="http://silverlight.net/emoticons/emotion-10.gif" alt="Embarrassed" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/40758.aspx</link><pubDate>Tue, 25 Mar 2008 09:15:58 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:40758</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/40758.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=40758</wfw:commentRss><description>&lt;p&gt;HI Yi-Lun,&lt;/p&gt;&lt;p&gt;Thanks a lot for your response.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;Yi-Lun Luo - MSFT:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;sorry for the late response. Got a lot of work these days.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;No problem. :) &lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;Yi-Lun Luo - MSFT:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Then I turned on ASP.NET Tracing on the server, and found that the actual response’s status code is 201 Created. I think this is the desired behavior since indeed there was a new item created. Unfortunately 201 is not recognized by Silverlight… I think this may be the problem.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Oh. I see.. The problem occurred because of the status code 201. I didn&amp;#39;t know that I got 201. I will try again.but actually, the &amp;quot;completed&amp;quot; event shouldn&amp;#39;t be invoked if Sliverlight doesn&amp;#39;t recognize this status code. Maybe, we should get the &amp;quot;failed&amp;quot; event instead.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is this an issue of Silverlight or&amp;nbsp; ASP.NET development server (casini)? I guess, it might be some issues with ASP.NET development server. Because if it&amp;#39;s an issue of Silverlight, it should not work with IIS too. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Is there any workaround to make it work on ASP.NET development server (casini) ? &lt;/p&gt;&lt;p&gt;OR, &lt;/p&gt;&lt;p&gt;Will it be fixed in next release of VS service pack or Silverlight 2 beta2? &amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks again.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/40755.aspx</link><pubDate>Tue, 25 Mar 2008 08:59:50 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:40755</guid><dc:creator>Yi-Lun Luo - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/40755.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=40755</wfw:commentRss><description>&lt;p&gt;Hi, Michael, sorry for the late response. Got a lot of work these days.&lt;/p&gt;
&lt;p&gt;I don’t know much about Astoria. But from Silverlight perspective, currently the only supported status are OK and Not Found. The limitation is due to the browser APIs that we use for networking requests.&amp;nbsp; The NPAPI (Netscape Plug-in API, used by Firefox and Safari) only returns success/failure without providing the status code.&lt;/p&gt;
&lt;p&gt;That said, your application works fine on the server. I can see the new record successfully added to the database. However, each time the response is null with a status “Not Found”. Then I turned on ASP.NET Tracing on the server, and found that the actual response’s status code is 201 Created. I think this is the desired behavior since indeed there was a new item created. Unfortunately 201 is not recognized by Silverlight… I think this may be the problem. &lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/40078.aspx</link><pubDate>Sun, 23 Mar 2008 05:10:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:40078</guid><dc:creator>dworthem</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/40078.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=40078</wfw:commentRss><description>&lt;p&gt;It appears that the AsyncCallback delegate handler for BeginGetRequestStream and BeginGetResponse runs on the same thread as the calling thread, the UI thread (ManagedThreadId of 1).&amp;nbsp; I thought these were&amp;nbsp;supposed to execute on another worker thread?&lt;/p&gt;
&lt;p&gt;Dennis&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/38383.aspx</link><pubDate>Tue, 18 Mar 2008 09:29:32 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38383</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38383.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=38383</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You are welcomed. jjy. I also like to say &amp;quot;thank you&amp;quot; for all of your replies too. :) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/38353.aspx</link><pubDate>Tue, 18 Mar 2008 08:20:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38353</guid><dc:creator>jjy2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38353.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=38353</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;It&amp;#39;s good you did that Michael, &lt;br /&gt;It&amp;#39;s always good to hear a defnite answer and avoid unnecessary&amp;nbsp;workround whenever possible.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I read your latest blog, that seems a fine solution too.&lt;br /&gt;Thanks for letting me know :-)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/38327.aspx</link><pubDate>Tue, 18 Mar 2008 07:33:00 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38327</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38327.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=38327</wfw:commentRss><description>&lt;p&gt;Hi jjy,&lt;/p&gt;&lt;p&gt;I haven&amp;#39;t tried yet. but I mailed to Yi-lun (Microsoft) about this problem. I&amp;#39;m waiting his reply. I hope he will be able to confirm whether this is a known issue or not. &lt;/p&gt;&lt;p&gt;Thanks for your solution too. but it&amp;#39;s a workaround, right? Hosting Astoria and SL on IIS instead of cassini, using web handler, using xmlhttprequest wrapper might solve the problem but those are workarounds. I would like to know whether this is my mistake in my coding or HttpWebRequest &amp;amp; HttpWebResponse&lt;br /&gt;&amp;nbsp;are missing something. What do you say? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/38213.aspx</link><pubDate>Mon, 17 Mar 2008 23:28:36 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:38213</guid><dc:creator>jjy2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/38213.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=38213</wfw:commentRss><description>&lt;p&gt;Hi Michael, &lt;/p&gt;&lt;p&gt;Have you tried your app in IIS yet?  &lt;br /&gt;I am not sure what I suggested was relevant to you, &lt;/p&gt;&lt;p&gt;Anyhow, It would be nice to hear from you if some hours of my study helped you somewhat.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/37651.aspx</link><pubDate>Sun, 16 Mar 2008 04:29:20 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37651</guid><dc:creator>jjy2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37651.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=37651</wfw:commentRss><description>&lt;p&gt;In short, answer to this is to &lt;/p&gt;
&lt;p&gt;1. use IIS&lt;/p&gt;
&lt;p&gt;2. make HTTP Handler or something if you don&amp;#39;t have IIS &lt;/p&gt;
&lt;p&gt;I gotta go, fat controller is looking for me&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/37649.aspx</link><pubDate>Sun, 16 Mar 2008 04:10:55 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37649</guid><dc:creator>jjy2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37649.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=37649</wfw:commentRss><description>&lt;p&gt;Hi Michael, &lt;/p&gt;I added this to default.aspx, and manually set content type as suggested by the link I posted ealier. and now I get response stream alright with asp.net development server.&lt;br /&gt;&lt;br /&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;override&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; OnPreInit(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;EventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;Response.ContentType = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;application/json&amp;quot;&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;Response.StatusCode = 200;&lt;/p&gt;Response.Write(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;{hello:123}&amp;quot;&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;Response.End();&lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/37644.aspx</link><pubDate>Sun, 16 Mar 2008 03:32:15 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37644</guid><dc:creator>jjy2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37644.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=37644</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;mchlsync:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Button did not even have an Event Handler attached to the Click event&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;&lt;br /&gt;Infact, the button click event is hooked in the code. So the button clearly fires click event. &lt;br /&gt;&lt;br /&gt;Just to clearify what I did was, since what goes to server and also&amp;nbsp;comes back are json string, I just changed your code to send request to default.aspx page without using Astroia. &lt;br /&gt;&amp;nbsp;&lt;br /&gt;Then when I run your app using ASP.NET Development Server, you are right, I was dazzling, because I get NULL response stream. But again if you change Content-Type &amp;nbsp;to something else, you can get response stream with ASP.NET Development Server too. &lt;br /&gt;One thing I notice is that regardless of MIME type, the request still coming through as I see it in the debugger (Default.aspx page gets called) &lt;/p&gt;
&lt;p&gt;However with the same thing when that App runs on IIS, It work with application/json MIME type. &lt;br /&gt;&lt;br /&gt;I think SL maybe reading MIME type from header when response is returned from server?? Maybe?? And it gives up because you requested&amp;nbsp;json type but it returned OCTET type or something...??&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/37639.aspx</link><pubDate>Sun, 16 Mar 2008 03:20:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37639</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37639.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=37639</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;BeSilver:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I downloaded the solution and the Button did not even have an Event Handler attached to the Click event. Is the solution supposed to work?! :-)&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;:) sorry about that. there were a lot of codes in my application so that I cleaned them up and I think I accidentally remove the event handler.. :)&lt;/p&gt;&lt;blockquote&gt;I thought you wanted know why response stream&amp;nbsp;is null? &lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;I just removed Astoria stuff and let the Your default [&lt;strike&gt;web service&lt;/strike&gt;]&amp;nbsp; page to&amp;nbsp;return string &amp;quot;AAA&amp;quot; and I got &amp;quot;AAA&amp;quot; &lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;
&lt;br /&gt;
I think IIS 6 should work arlight. if II7 works why not 6? &lt;br /&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Yes. I want to know why response steam is null. but I&amp;#39;m not sure why it doesn&amp;#39;t work with Astoria. I&amp;#39;m very sure that Astoria service is working fine since I have tested. maybe, HttpWebRequest or HttpWebResponse are missing some features? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: HttpWebRequest or HttpWebResponse doesn't work well in Silverlight 2 beta1</title><link>http://forums.silverlight.net/forums/thread/37560.aspx</link><pubDate>Sat, 15 Mar 2008 18:33:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37560</guid><dc:creator>BeSilver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37560.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=37560</wfw:commentRss><description>&lt;p&gt;Michael,&lt;/p&gt;
&lt;p&gt;I downloaded the solution and the Button did not even have an Event Handler attached to the Click event. Is the solution supposed to work?! :-)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>