<?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: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/108131.aspx</link><pubDate>Tue, 14 Oct 2008 04:37:57 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:108131</guid><dc:creator>Yi-Lun Luo - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/108131.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=108131</wfw:commentRss><description>&lt;p&gt;Hello, why do you set a ContentType? It has no use in a GET operation. From the document:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This header cannot be set on a GET method. If this header is set, a &lt;/em&gt;&lt;span&gt;&lt;em&gt;ProtocolViolationException&lt;/em&gt;&lt;/span&gt;&lt;em&gt; is thrown. &lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Remove ContentType, and it should work fine.&lt;/p&gt;</description></item><item><title>Re: Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105727.aspx</link><pubDate>Thu, 09 Oct 2008 20:31:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105727</guid><dc:creator>Qbus</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105727.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105727</wfw:commentRss><description>&lt;p&gt;I see you have two &lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;&lt;font size="2" color="#0000ff"&gt;catch&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font size="2" color="#2b91af"&gt;&lt;font size="2" color="#2b91af"&gt;Exception&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ex)&lt;/font&gt;&lt;font size="2"&gt; 
&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Why is this empty? In my coding world, it&amp;#39;s only in VERY rare scenarios that you need to have an empty catch. What you are doing here, it hiding errors! Yes, it&amp;#39;s good to have a applciation that doesn&amp;#39;t crash, but what you are doing here, is that you are hiding errors from you and your application, which is very bad. &lt;/p&gt;&lt;p&gt;You never discover if anything of this fails... and the fact that you have placed the try/catch shows that you expect it to fail, so we not look at the error?&lt;/p&gt;&lt;p&gt;Maybe if you write out these exceptions, they would help you figure out where your problem were? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105721.aspx</link><pubDate>Thu, 09 Oct 2008 19:59:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105721</guid><dc:creator>edward_494</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105721.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105721</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;OK, i think my problem is that i simply can&amp;#39;t an outside call from within my silverlight application.&lt;/p&gt;&lt;p&gt;So my solution (in theory) is to create a webmethod that will retrieve this for me. this web service, for convenience, will reside in the same domain as my app. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105720.aspx</link><pubDate>Thu, 09 Oct 2008 19:53:41 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105720</guid><dc:creator>edward_494</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105720.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105720</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Oops! I forgot to mention why i was getting that error.&lt;/p&gt;&lt;p&gt;When i check my callback method from the BeginGetResponse call, i notice that the HasResponse property is false.&lt;/p&gt;&lt;p&gt;This is never true. Now if i then proceed to call the EndGetResponse method, then i receive the invalid state error, which i believe is related.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So... i guess the REAL question is, why is my response not being returned? &lt;/p&gt;&lt;p&gt;I currently have my app being run from the Web Application project (rather than the web site) that you suggested. Do I still need to include the crossaccesspolicy.xml?&lt;/p&gt;&lt;p&gt;&amp;nbsp;I noticed in Fiddler i can see the policy file for Yahoo (: policyref=&amp;quot;http://p3p.yahoo.com/w3c/p3p.xml&amp;nbsp; ). Do I need to specify this somewhere???&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105698.aspx</link><pubDate>Thu, 09 Oct 2008 19:37:08 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105698</guid><dc:creator>edward_494</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105698.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105698</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Now im just confused.&lt;/p&gt;&lt;p&gt;I used the Web Dev Helper to view http logs while my app runs.&lt;/p&gt;&lt;p&gt;Still nothing! i dont see any logs at all.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105694.aspx</link><pubDate>Thu, 09 Oct 2008 19:25:22 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105694</guid><dc:creator>Bill Reiss</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105694.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105694</wfw:commentRss><description>&lt;p&gt;Fiddler doesn&amp;#39;t trap localhost traffic by default, that&amp;#39;s why I recommended Nihkil&amp;#39;s WebDevHelper.&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105689.aspx</link><pubDate>Thu, 09 Oct 2008 19:20:25 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105689</guid><dc:creator>edward_494</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105689.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105689</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Interesting.&lt;/p&gt;&lt;p&gt;The url is indeed http://locahost:.....&lt;/p&gt;&lt;p&gt;&amp;nbsp;However, when i use Fiddler to view http traffic, i see that there is nothing going on!&lt;/p&gt;&lt;p&gt;MY app runs thru an infinite loop. So i should be seeing this webrequest every 3 seconds... yet nothing!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105686.aspx</link><pubDate>Thu, 09 Oct 2008 19:11:43 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105686</guid><dc:creator>Bill Reiss</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105686.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105686</wfw:commentRss><description>&lt;p&gt;Ok first make sure that the url is the browser says &lt;a href="http://localhost...etc/"&gt;http://localhost...etc&lt;/a&gt;&amp;nbsp;and not C:\ or file://&lt;/p&gt;
&lt;p&gt;Then download and install Nikhil&amp;#39;s web development helper at &lt;a href="http://projects.nikhilk.net/WebDevHelper/"&gt;http://projects.nikhilk.net/WebDevHelper/&lt;/a&gt;&amp;nbsp;and enable logging&lt;/p&gt;
&lt;p&gt;See what requests are being made and make sure they&amp;#39;re going where you think they should be going.&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105684.aspx</link><pubDate>Thu, 09 Oct 2008 19:09:44 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105684</guid><dc:creator>edward_494</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105684.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105684</wfw:commentRss><description>&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;
&lt;p&gt;//////////////////////////////////////////////// Web Request ///////////////////////////////////////////////////////&amp;nbsp;&lt;/p&gt;HttpWebRequest&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; webRequest = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;try&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;webRequest = (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HttpWebRequest&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;WebRequest&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Create(_uri);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;webRequest.Method = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;GET&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;webRequest.ContentType = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;text/html&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;webRequest.BeginGetResponse(ResponseCallback, webRequest);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;catch&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Exception&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ex)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;/////////////////////////////////////////////////////////////// Response Callback /////////////////////////////////////////////////////////////////&amp;nbsp;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;static&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; ResponseCallback(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;IAsyncResult&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; result)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HttpWebRequest&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; request = (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HttpWebRequest&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)result.AsyncState;&lt;/font&gt;&lt;/font&gt;&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;StreamReader&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sr = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&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;HttpWebResponse&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; response = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&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;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (request != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&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;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//if (request.HaveResponse)&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;try&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;response = (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HttpWebResponse&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)request.EndGetResponse(result);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;sr = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;StreamReader&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(response.GetResponseStream());&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (sr != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&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;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; data = sr.ReadToEnd();&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;if&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;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.IsNullOrEmpty(data))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// parse by &amp;#39;,&amp;#39;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;data = data.Replace(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;\&amp;quot;&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;&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;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[] quoteData = data.Split(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&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;char&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;#39;,&amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; });&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// set data members&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;_lastTraded = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;float&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Parse(quoteData[0]);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;catch&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Exception&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ex)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;finally&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (sr != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&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;/p&gt;
&lt;p&gt;sr.Dispose();&lt;/p&gt;sr = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&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;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105683.aspx</link><pubDate>Thu, 09 Oct 2008 19:06:41 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105683</guid><dc:creator>edward_494</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105683.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105683</wfw:commentRss><description>&lt;p&gt;I confirm that i have the cassini dev server, and that is what im running now to run my application.&lt;/p&gt;
&lt;p&gt;However, im still seeing the same thing.&lt;/p&gt;
&lt;p&gt;My specific error occurs when i try to call the EndGetResponse().&lt;/p&gt;
&lt;p&gt;The exception is: Operation is not valid due to the current state of the object.&lt;/p&gt;
&lt;p&gt;Stacetrace: &lt;/p&gt;
&lt;p&gt;at System.NetAsyncHelper.BeginOnUI&lt;/p&gt;
&lt;p&gt;at System.NetBrowserHttpWebRequest.EndGetResponse&lt;/p&gt;
&lt;p&gt;at ResponseCallback&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105656.aspx</link><pubDate>Thu, 09 Oct 2008 18:03:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105656</guid><dc:creator>Bill Reiss</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105656.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105656</wfw:commentRss><description>&lt;p&gt;Yes, I think it defaults to Cassini? If not you can go to the property pages for the web application project and on the Web tab select &amp;quot;Use Visual Studio Development Server&amp;quot;.&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105655.aspx</link><pubDate>Thu, 09 Oct 2008 17:52:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105655</guid><dc:creator>edward_494</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105655.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105655</wfw:commentRss><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Do you mean add a new Web Application project to my solution?&lt;/p&gt;
&lt;p&gt;How to enable Cassini mode?&lt;/p&gt;</description></item><item><title>Re: Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105652.aspx</link><pubDate>Thu, 09 Oct 2008 17:38:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105652</guid><dc:creator>Bill Reiss</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105652.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105652</wfw:commentRss><description>&lt;p&gt;Add a web project to your solution, and then add the Silverlight Application to that web project using the Silverlight Applications section of the web project&amp;#39;s property pages. This will generate test pages for you in the web project and the web project can then run in &amp;quot;Cassini&amp;quot;, Visual Studio&amp;#39;s built in web server. This will allow you to hit resources on the internet.&lt;/p&gt;</description></item><item><title>Using HttpWebRequest from loca file system to the web.</title><link>http://forums.silverlight.net/forums/thread/105614.aspx</link><pubDate>Thu, 09 Oct 2008 17:33:38 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105614</guid><dc:creator>edward_494</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105614.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=105614</wfw:commentRss><description>&lt;p&gt;I just read that using a WebClient on a locally running application does not work when reaching out to the web via http.&lt;/p&gt;
&lt;p&gt;Since im testing as i develop here i need a way to test services out there on the internet while my project is running (debug) on my local file system.&lt;/p&gt;
&lt;p&gt;Add yes, i did place the clientaccesspolicy.xml in my web project, which didn&amp;#39;t help.&lt;/p&gt;
&lt;p&gt;So what are my options?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since i can&amp;#39;t use WebClient i am now resorting to useing HttpWebRequest and HttpWebResponse. Is there anything else i can do to retrieve data from the internet while testing locally on my machine ( i am avoiding web service or wcf calls).&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>