SilverlightShow: Azure Services connecting Windows Phone to Data Comments
http://www.silverlightshow.net/
Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samplesSilverlightShow.nethttp://www.rssboard.org/rss-specificationArgotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argoticen-USestoychev@completit.com (Emil Stoychev)Re: Azure Services connecting Windows Phone to Data<p>RandyLim,</p>
<p>Thanks for your question. If you are connecting directly to a SQL Azure DB, the Connection String can be found on the right hand side on the Azure portal, after you have the DB server selected. If connecting to a service that is sitting on top of the DB, you do not need a direct connecting string; but rather work with the service endpoint.</p>
<p>Please lemme know if this helps or of other problems you encounter.</p>
<p>Thanks!</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment8402
samidiphttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxWed, 22 Aug 2012 05:05:24 GMTRe: Azure Services connecting Windows Phone to DataHi, dont know can you help me, but i am stuck at the ADO.NET Entity Data Model part. My new to this so i have some problems. the connection string, how do you link it to azure? or is it some other database? I cant seems to understand. Thanks
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment8400
RandyLimhttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxTue, 21 Aug 2012 05:03:14 GMTRe: Azure Services connecting Windows Phone to Data<p>Marimon,</p>
<p>No worries at all .. we all learn from each other :). Now, there are two aspects of this as you already understand - the WCF service which is running in a WebRole and the Windows Phone client. The WCF service can really be hosted anywhere; but you would use the WebRole if leveraging Azure. The WCF service & the Windows Phone app actually do not need to belong in the same VS solution. </p>
<p>So first, create the WCF service in a WebRole. If using the latest Azure SDK, you can publish directly using your Azure subscription details or create a local package (right click) & then upload to Azure. Once done & hosted, grab the URL of the hosted service (ending in .svc) and add a service reference to it in your separate Windows Phone solution.</p>
<p>Hope this helps!</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment8158
samidiphttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxWed, 13 Jun 2012 14:58:24 GMTRe: Azure Services connecting Windows Phone to Data<div>Thanks for the reply, I think what I am confused about is how to use the webrole service in a windows phone 7 application. Is it as simple as adding a silverlight project within the webrole project?</div>
<p>Also, I am having a problem with publishing the webrole. I do not see the option “Create Service Packages only” option. When I click publish, I get a popup that has steps: sign in, settings, and summary.</p>
<p>Sorry for asking such trivial questions, I am new.</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment8151
marimonhttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxWed, 13 Jun 2012 05:20:10 GMTRe: Azure Services connecting Windows Phone to Data<p>Marimon,</p>
<p>Not following your question. The webrole is a WCF service; why would you expect a XAML file? If consuming services from Windows Phone client, that will have XAML files as front-end UI. Please lemme know if you have more questions.</p>
<p>Thanks!</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment8150
samidiphttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxTue, 12 Jun 2012 18:37:46 GMTRe: Azure Services connecting Windows Phone to Data<p>Hello, my question is where is my .xaml file? I don't see it in my solution explorer when I created the webrole project. How can I add it so I can start developing? thanks!</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment8149
marimonhttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxTue, 12 Jun 2012 10:30:39 GMTRe: Azure Services connecting Windows Phone to Data<p>Hello, my question is where is my .xaml file? I don't see it in my solution explorer when I created the webrole project. How can I add it so I can start developing? thanks!</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment8148
marimonhttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxTue, 12 Jun 2012 10:23:47 GMTRe: Azure Services connecting Windows Phone to Data<p>Karim,</p>
<p>WP should surely be able to consume services that return arrays or lists. Are you adding the ADO.NET Data Entity Model? Did the .edmx file get created ok? What is your service returning?</p>
<p>If you want to take the conversation offline, you can email me @ firstname@live.com. I'll be happy look through some of your code.</p>
<p>Thanks!</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment7983
samidiphttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxMon, 23 Apr 2012 17:58:40 GMTRe: Azure Services connecting Windows Phone to Data<p>Thanks for your fast reply :) <br />
And i think i have solved it , that's what i did :</p>
I made an ASP.NET Web role then added "WCF Service" item to the web role project<br />
<p>I published the azureProject and it worked great -- That's before i use ADO.NET Entity Data Model --, i used just a function which returns a string and added the service reference in the WP client , everything worked just fine.</p>
<p>I then Added ADO.NET Model and returned a List as your tutorial but WP couldn't read the namespace "ServiceReference1" ! : ( , the problem is not in connecting to the database cuz when i returned a string even after using ADO.NET Model , it worked fine<br />
<br />
So to check that : i deleted the Model and made a function that returns an array of numbers but the same problem occured again !<br />
i think WP Client can't use functions that returns arrays or list , i don't know if that's correct , it's just a suggestion :)</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment7978
KarimAlyhttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxFri, 20 Apr 2012 12:47:56 GMTRe: Azure Services connecting Windows Phone to Data<p>Thanks for your fast reply :) <br />
And i think i have solved it , that's what i did :</p>
I made an ASP.NET Web role then added "WCF Service" item to the web role project<br />
<p>I published the azureProject and it worked great -- That's before i use ADO.NET Entity Data Model --, i used just a function which returns a string and added the service reference in the WP client , everything worked just fine.</p>
<p>I then Added ADO.NET Model and returned a List as your tutorial but WP couldn't read the namespace "ServiceReference1" ! : ( , the problem is not in connecting to the database cuz when i returned a string even after using ADO.NET Model , it worked fine<br />
<br />
So to check that : i deleted the Model and made a function that returns an array of numbers but the same problem occured again !<br />
i think WP Client can't use functions that returns arrays or list , i don't know if that's correct , it's just a suggestion :)</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment7977
KarimAlyhttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxFri, 20 Apr 2012 12:41:58 GMTRe: Azure Services connecting Windows Phone to Data<p>KarimAly,</p>
<p>Thank you for the comment & kind words.</p>
<p>Let's knock out potential error conditions one by one:</p>
<ol>
<li>Does adding a "/" at the end of the svc in the URL work?</li>
<li>In your cloud project, could you right click on the svc file & view in browser? What error do you see, if any?</li>
<li>Is the DB connection string correct?</li>
<li>What operations does the WCF service support?</li>
<li>Are you using latest Azure SDK?</li>
</ol>
<p>Lemme know.</p>
<p>Thanks!</p>
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment7972
samidiphttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxFri, 20 Apr 2012 02:45:20 GMTRe: Azure Services connecting Windows Phone to Data<p>Hi , first of all , great tutorials , i have read most of Them and liked so much :) </p>
<p>but i have a problem in here if you can help me :) </p>
<p>The Problem : i have deployed windows azure project as you said but still the link doesn't work </p>
<p>http://xxxxxxx.cloudapp.net/Service1.svc</p>
It gives me 500 -Internal server error ,, Any help will be appreciated :)
http://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspx#comment7971
KarimAlyhttp://www.silverlightshow.net/items/Azure-Services-connecting-Windows-Phone-to-Data.aspxThu, 19 Apr 2012 21:19:54 GMT