<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ADO.NET Data Service (Astoria) in Silverlight 2 (beta1)</title>
	<atom:link href="http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1</link>
	<description>Sharing our knowledge</description>
	<lastBuildDate>Thu, 04 Mar 2010 13:05:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Prashant Phalle</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-183599</link>
		<dc:creator>Prashant Phalle</dc:creator>
		<pubDate>Fri, 03 Jul 2009 12:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-183599</guid>
		<description>Hi 
I have a ADO.Net service hosted on my PC and exposed using service bus. I have consumed this service in my .net web application and want to perform CRUD operation as above you mentioned. 
I tried the same code here, but I am getting error &quot; HtmlPage_NotEnabled &quot; 
And here is stack trace -- 
&quot;   at System.Windows.Browser.HtmlPage.VerifyThreadAndEnabled()\r\n   at System.Windows.Browser.HtmlPage.get_Window()\r\n   at GRSADOService_WebRole.XMLHttpRequestWrapper.DoPost(Uri url, String httpVerb, String param) in F:\\AZURE\\My Samples\\GRSADOService\\GRSADOService_WebRole\\XMLHttpRequestWrapper.cs:line 24&quot;

Can you please figure out the error ?

Thanks,
prashant</description>
		<content:encoded><![CDATA[<p>Hi<br />
I have a ADO.Net service hosted on my PC and exposed using service bus. I have consumed this service in my .net web application and want to perform CRUD operation as above you mentioned.<br />
I tried the same code here, but I am getting error &#8221; HtmlPage_NotEnabled &#8221;<br />
And here is stack trace &#8212;<br />
&#8221;   at System.Windows.Browser.HtmlPage.VerifyThreadAndEnabled()\r\n   at System.Windows.Browser.HtmlPage.get_Window()\r\n   at GRSADOService_WebRole.XMLHttpRequestWrapper.DoPost(Uri url, String httpVerb, String param) in F:\\AZURE\\My Samples\\GRSADOService\\GRSADOService_WebRole\\XMLHttpRequestWrapper.cs:line 24&#8243;</p>
<p>Can you please figure out the error ?</p>
<p>Thanks,<br />
prashant</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dhinesh Kumar</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-48992</link>
		<dc:creator>Dhinesh Kumar</dc:creator>
		<pubDate>Tue, 01 Apr 2008 09:37:42 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-48992</guid>
		<description>Hello Michael,

Yes.Entity Framework or SL runtime or others --everything is installed.I have established connection with Server Explorer and connection is live.
Yes I tried creating an ADO.NET Web Service and connect to SQL Database. It works. But the issue existing the XMLHttpWrapperClass in the DoPostMethod. I tried running your sample code with this but it throws an error in the Invoke method

public static string DoPost(Uri url, string httpVerb, string param)
        {
            _xmlHttpRequest = HtmlPage.Window.CreateInstance(&quot;XMLHttpRequest&quot;);
            _xmlHttpRequest.Invoke(&quot;open&quot;, httpVerb, url,true);
            _xmlHttpRequest.Invoke(&quot;setRequestHeader&quot;, &quot;Content-Type&quot;, &quot;application/json&quot;);
            //_XMLHttpRequest.Invoke(&quot;setRequestHeader&quot;, &quot;SOAPAction&quot;, string.Concat(nspace, method));
            if (param == string.Empty) {
                _xmlHttpRequest.Invoke(&quot;send&quot;);
            }
            else {
                _xmlHttpRequest.Invoke(&quot;send&quot;, param);
            }

            ScriptObject dom = (ScriptObject)_xmlHttpRequest.GetProperty(&quot;responseXML&quot;); 
            return (string)dom.GetProperty(&quot;xml&quot;);
        }

Regards,

Dhinesh Kumar</description>
		<content:encoded><![CDATA[<p>Hello Michael,</p>
<p>Yes.Entity Framework or SL runtime or others &#8211;everything is installed.I have established connection with Server Explorer and connection is live.<br />
Yes I tried creating an ADO.NET Web Service and connect to SQL Database. It works. But the issue existing the XMLHttpWrapperClass in the DoPostMethod. I tried running your sample code with this but it throws an error in the Invoke method</p>
<p>public static string DoPost(Uri url, string httpVerb, string param)<br />
        {<br />
            _xmlHttpRequest = HtmlPage.Window.CreateInstance(&#8220;XMLHttpRequest&#8221;);<br />
            _xmlHttpRequest.Invoke(&#8220;open&#8221;, httpVerb, url,true);<br />
            _xmlHttpRequest.Invoke(&#8220;setRequestHeader&#8221;, &#8220;Content-Type&#8221;, &#8220;application/json&#8221;);<br />
            //_XMLHttpRequest.Invoke(&#8220;setRequestHeader&#8221;, &#8220;SOAPAction&#8221;, string.Concat(nspace, method));<br />
            if (param == string.Empty) {<br />
                _xmlHttpRequest.Invoke(&#8220;send&#8221;);<br />
            }<br />
            else {<br />
                _xmlHttpRequest.Invoke(&#8220;send&#8221;, param);<br />
            }</p>
<p>            ScriptObject dom = (ScriptObject)_xmlHttpRequest.GetProperty(&#8220;responseXML&#8221;);<br />
            return (string)dom.GetProperty(&#8220;xml&#8221;);<br />
        }</p>
<p>Regards,</p>
<p>Dhinesh Kumar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-48800</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Mon, 31 Mar 2008 13:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-48800</guid>
		<description>Hello Dhinesh, 

Have you installed all required softwares (e.g. Entity Framework or SL runtime or etc)?

Another thing is that you need to attach the SQL Database in your SQL server and you have to change the connectionstring. 

Can you please try to create one ADO.NET web service in your new project and see whether you are able to connect to SQL database or not?</description>
		<content:encoded><![CDATA[<p>Hello Dhinesh, </p>
<p>Have you installed all required softwares (e.g. Entity Framework or SL runtime or etc)?</p>
<p>Another thing is that you need to attach the SQL Database in your SQL server and you have to change the connectionstring. </p>
<p>Can you please try to create one ADO.NET web service in your new project and see whether you are able to connect to SQL database or not?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dhinesh Kumar,iInterchange Systems</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-48768</link>
		<dc:creator>Dhinesh Kumar,iInterchange Systems</dc:creator>
		<pubDate>Mon, 31 Mar 2008 09:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-48768</guid>
		<description>Hello Michael,

I am Dhinesh Kumar Ganesan. I tried using your source code to try out the Silverlight beta 2 with VS 2008. I am stuck with the following error when i try running the application

An exception of type &#039;System.InvalidOperationException&#039; occurred in System.Windows.Browser.dll but was not handled in user code

Additional information: Access is denied.

Can you help me out to resolve this issue?


Regards,

Dhinesh Kumar</description>
		<content:encoded><![CDATA[<p>Hello Michael,</p>
<p>I am Dhinesh Kumar Ganesan. I tried using your source code to try out the Silverlight beta 2 with VS 2008. I am stuck with the following error when i try running the application</p>
<p>An exception of type &#8216;System.InvalidOperationException&#8217; occurred in System.Windows.Browser.dll but was not handled in user code</p>
<p>Additional information: Access is denied.</p>
<p>Can you help me out to resolve this issue?</p>
<p>Regards,</p>
<p>Dhinesh Kumar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desopedr</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-46666</link>
		<dc:creator>desopedr</dc:creator>
		<pubDate>Thu, 20 Mar 2008 10:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-46666</guid>
		<description>Hi Michael,

You are right, but change creating a data service it&#039;s five/ten minutes. The biggest part of work is in the Silverlight side and with the WebDataClient library the code will be completly different.

Maybe its better to wait end of April and to work on design, custom controls, animations until there.

Thanks for help</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>You are right, but change creating a data service it&#8217;s five/ten minutes. The biggest part of work is in the Silverlight side and with the WebDataClient library the code will be completly different.</p>
<p>Maybe its better to wait end of April and to work on design, custom controls, animations until there.</p>
<p>Thanks for help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-46334</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Tue, 18 Mar 2008 15:13:08 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-46334</guid>
		<description>Hi Lee, 

You are welcomed! :) 

&lt;blockquote&gt;many thanks but I am sure I will have lots more questions in the learning process.&lt;/blockquote&gt;

Yeah. anytime.. buddy. :)</description>
		<content:encoded><![CDATA[<p>Hi Lee, </p>
<p>You are welcomed! :) </p>
<blockquote><p>many thanks but I am sure I will have lots more questions in the learning process.</p></blockquote>
<p>Yeah. anytime.. buddy. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prof Lee Hubbard</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-46331</link>
		<dc:creator>Prof Lee Hubbard</dc:creator>
		<pubDate>Tue, 18 Mar 2008 15:09:02 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-46331</guid>
		<description>Hi there Michael
 
 
Many many thanks for your prompt and very thoughtful reply. But you are right I cannot wait to get my teeth into this technology I personally think it a massive step forward and everyone who has contributed to it should be heartly congratulated.
 
I will get on and install from the links you have provided.
 
many thanks but I am sure I will have lots more questions in the learning process.
 
 
best regards
 
lee</description>
		<content:encoded><![CDATA[<p>Hi there Michael</p>
<p>Many many thanks for your prompt and very thoughtful reply. But you are right I cannot wait to get my teeth into this technology I personally think it a massive step forward and everyone who has contributed to it should be heartly congratulated.</p>
<p>I will get on and install from the links you have provided.</p>
<p>many thanks but I am sure I will have lots more questions in the learning process.</p>
<p>best regards</p>
<p>lee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sync</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-46321</link>
		<dc:creator>Michael Sync</dc:creator>
		<pubDate>Tue, 18 Mar 2008 14:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-46321</guid>
		<description>Hi desopedr,

I know you want to use Astoria Client that is not currently available. but you are in hurry, right? So, you got two options 1) SL proxy + ASMX web service or WCF 2) SL XmlHttpRequest Wrapper + Astoria Web service. 

If you take option 1, you will need to change both SL project and Webservice or WCF project when you get to Astoria client. 

If you take option 2, you only need to change in SL project. you don&#039;t need to do anything for Astoria web service that you created. 

So, I provide this solution for you. You can enjoy with XmlHttpRequest wrapper before you get Astoria client addon. When Astoria team release Client addon, you can change to SL prject. Your Astoria service will work without any change..


Hello Lee,

Please install the following installers. 

1. &lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkID=104985&quot; rel=&quot;nofollow&quot;&gt;XML Editor QFE&lt;/a&gt;

2. &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyId=15DB9989-1621-444D-9B18-D1A04A21B519&amp;displaylang=en&quot; rel=&quot;nofollow&quot;&gt;ADO.NET Entity Framework Beta 3 &lt;/a&gt; 

3. &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=D8AE4404-8E05-41FC-94C8-C73D9E238F82&amp;displaylang=en&quot; rel=&quot;nofollow&quot;&gt;ADO.Net Entity Framework Tools Dec 07 Community Technology Preview&lt;/a&gt;

4. &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=A9C6BC06-B894-4B11-8300-35BD2F8FC908&amp;displaylang=en&quot; rel=&quot;nofollow&quot;&gt;ASP.NET 3.5 Extensions Preview&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi desopedr,</p>
<p>I know you want to use Astoria Client that is not currently available. but you are in hurry, right? So, you got two options 1) SL proxy + ASMX web service or WCF 2) SL XmlHttpRequest Wrapper + Astoria Web service. </p>
<p>If you take option 1, you will need to change both SL project and Webservice or WCF project when you get to Astoria client. </p>
<p>If you take option 2, you only need to change in SL project. you don&#8217;t need to do anything for Astoria web service that you created. </p>
<p>So, I provide this solution for you. You can enjoy with XmlHttpRequest wrapper before you get Astoria client addon. When Astoria team release Client addon, you can change to SL prject. Your Astoria service will work without any change..</p>
<p>Hello Lee,</p>
<p>Please install the following installers. </p>
<p>1. <a href="http://go.microsoft.com/fwlink/?LinkID=104985" rel="nofollow">XML Editor QFE</a></p>
<p>2. <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=15DB9989-1621-444D-9B18-D1A04A21B519&#038;displaylang=en" rel="nofollow">ADO.NET Entity Framework Beta 3 </a> </p>
<p>3. <a href="http://www.microsoft.com/downloads/details.aspx?familyid=D8AE4404-8E05-41FC-94C8-C73D9E238F82&#038;displaylang=en" rel="nofollow">ADO.Net Entity Framework Tools Dec 07 Community Technology Preview</a></p>
<p>4. <a href="http://www.microsoft.com/downloads/details.aspx?familyid=A9C6BC06-B894-4B11-8300-35BD2F8FC908&#038;displaylang=en" rel="nofollow">ASP.NET 3.5 Extensions Preview</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prof Lee Hubbard</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-46311</link>
		<dc:creator>Prof Lee Hubbard</dc:creator>
		<pubDate>Tue, 18 Mar 2008 13:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-46311</guid>
		<description>Hi there

i have bene attempting to floow this example but i am confused. i cannot seem to find the ado.net entity data model template at the start of the example. I am using vs2008 team edition and have installed astoria CTP sept.  I am also using silverlight 2 beta 1 and blend 2.5 march.

any ideas how to sort this out

regards

lee</description>
		<content:encoded><![CDATA[<p>Hi there</p>
<p>i have bene attempting to floow this example but i am confused. i cannot seem to find the ado.net entity data model template at the start of the example. I am using vs2008 team edition and have installed astoria CTP sept.  I am also using silverlight 2 beta 1 and blend 2.5 march.</p>
<p>any ideas how to sort this out</p>
<p>regards</p>
<p>lee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desopedr</title>
		<link>http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1/comment-page-1#comment-46201</link>
		<dc:creator>desopedr</dc:creator>
		<pubDate>Mon, 17 Mar 2008 20:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2008/03/16/adonet-data-service-astoria-in-silverlight-2-beta1#comment-46201</guid>
		<description>Hi Michael,

Thanks a lot for your help. The error looks like a security issue, but I&#039;m administrator of my computer. I tested the solution on my notebook and It works...  I hope I will find why it doesn&#039;t work in my computer, my work station. I&#039;m sorry it&#039;s not really what I needed, I think I didnt explain very well. My goal is to use Entities in Silverlight like your sample in SL1.1

MyEntities db = new MyEntities(UriOfTheDataService);
var products = from p in db.Products
select p;

Working with a proxy class of my entities it&#039;s really cool, but I guess we can&#039;t do this without a WebClient library which supports that (maybe end of April).
	
I thank you anyway for your job, it&#039;s just not what I expected, world is not perfect! 

See you man</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>Thanks a lot for your help. The error looks like a security issue, but I&#8217;m administrator of my computer. I tested the solution on my notebook and It works&#8230;  I hope I will find why it doesn&#8217;t work in my computer, my work station. I&#8217;m sorry it&#8217;s not really what I needed, I think I didnt explain very well. My goal is to use Entities in Silverlight like your sample in SL1.1</p>
<p>MyEntities db = new MyEntities(UriOfTheDataService);<br />
var products = from p in db.Products<br />
select p;</p>
<p>Working with a proxy class of my entities it&#8217;s really cool, but I guess we can&#8217;t do this without a WebClient library which supports that (maybe end of April).</p>
<p>I thank you anyway for your job, it&#8217;s just not what I expected, world is not perfect! </p>
<p>See you man</p>
]]></content:encoded>
	</item>
</channel>
</rss>
