<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.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>Search results matching tags 'silverlight' and 'ASP.NET 3.5'</title><link>http://weblogs.asp.net/search/SearchResults.aspx?q=&amp;tag=silverlight%2cASP.NET+3.5&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tags 'silverlight' and 'ASP.NET 3.5'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Doing CRUD Operations in Silverlight 2 Against ADO.NET Data Services</title><link>http://weblogs.asp.net/kencox/archive/2008/11/13/doing-crud-operations-in-silverlight-2-against-ado-net-data-services.aspx</link><pubDate>Thu, 13 Nov 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6732564</guid><dc:creator>Ken Cox [MVP]</dc:creator><author>Ken Cox [MVP]</author><description>&lt;p&gt;Many of us have been struggling to create business-oriented (LOB) forms using Silverlight 2 and ADO.NET Data Services. There are plenty of community samples on &lt;em&gt;reading &lt;/em&gt;data, but a dearth of real-world content on &lt;em&gt;creating&lt;/em&gt; and &lt;em&gt;updating&lt;/em&gt; records. &lt;/p&gt;  &lt;p&gt;The &lt;a target="_blank" href="http://blogs.msdn.com/silverlight_sdk/archive/2008/11/11/wcf-http-and-security-topics-for-silverlight.aspx"&gt;Silverlight SDK team&lt;/a&gt; has been paying attention to the community feedback and posted some tutorials on doing CRUD with Silverlight 2. Good work, team!&lt;/p&gt;  &lt;p&gt;I've successfully completed two of the tutorials - creating a data model and inserting data. However, beware of the cross domain security issues. If you get a JavaScript &lt;strong&gt;'Access Denied'&lt;/strong&gt; error, be sure you're hosting the Silverlight web application and the data service (.svc) &lt;em&gt;on the same domain&lt;/em&gt;. Let's hope a Silverlight update can remedy that issue (securely) some day.&lt;/p&gt;  &lt;p&gt;Here are some tutorial/documentation URLs of note for Silverlight 2 developers:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc838234(VS.95).aspx"&gt;ADO.NET Data Services (Silverlight)&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc838239(VS.95).aspx"&gt;Create a data model and ADO.NET data service that can be used by applications for Silverlight&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc838191(VS.95).aspx"&gt;Access ADO.NET Data Services and bind data to Silverlight's user interface controls&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc903944(VS.95).aspx"&gt;How Silverlight can insert new instances of data that is defined and deployed by ADO.NET Data Services.&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc903956(VS.95).aspx"&gt;How Silverlight can modify or delete data that is deployed by ADO.NET Data Services&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc903922(VS.95).aspx"&gt;How Silverlight can navigate associations between data&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc903932(VS.95).aspx"&gt;How Silverlight can create new instances of associations that are defined by the ADO.NET Entity Data Model.&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;</description></item><item><title>Blocked by the Silverlight ManagedRuntimeError 4004</title><link>http://weblogs.asp.net/kencox/archive/2008/10/19/blocked-by-the-silverlight-managedruntimeerror-4004.aspx</link><pubDate>Sun, 19 Oct 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6690586</guid><dc:creator>Ken Cox [MVP]</dc:creator><author>Ken Cox [MVP]</author><description>&lt;P&gt;For my Silverlight 2 prototype business app, I wanted to try capturing JSON data from a WCF service and caching it in isolated storage. I found a &lt;A target=_blank href="http://timheuer.com/blog/archive/2008/05/06/use-json-data-in-silverlight.aspx" mce_href="http://timheuer.com/blog/archive/2008/05/06/use-json-data-in-silverlight.aspx"&gt;nice example by Tim Heuer&lt;/A&gt; that I updated to the RTW version. After setting up the WCF service on a VPC running Windows Server 2008, I was able to fill the Silverlight datagrid with remote JSON data. Great!, I thought.&lt;/P&gt;
&lt;P&gt;The hassles started when I moved the WCF code to a server out on the real Internet. The same Silverlight app on my workstation now throws a 4004 "ManagedRuntimeError" error on startup.&lt;/P&gt;
&lt;P&gt;A quick analysis with &lt;A target=_blank href="http://www.fiddlertool.com/fiddler/" mce_href="http://www.fiddlertool.com/fiddler/"&gt;Fiddler&lt;/A&gt; shows the problem. The first thing Silverlight 2 does is look for clientaccesspolicy.xml in the &lt;STRONG&gt;&lt;EM&gt;root&lt;/EM&gt;&lt;/STRONG&gt; of the domain. Then, it looks for crossdomain.xml. &lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px" border=0 alt=image src="http://weblogs.asp.net/blogs/kencox/WindowsLiveWriter/BlockedbytheSilverlightManagedRuntimeErr_D799/image_2.png"&gt;&lt;/P&gt;
&lt;P&gt;In my local VPC (webservice2008), I control the root of the domain, so there's no problem putting a &lt;A target=_blank href="http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx" mce_href="http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx"&gt;clientaccesspolicy.xml&lt;/A&gt; in the right location. However, at &lt;A target=_blank href="http://aspspider.com/" mce_href="http://aspspider.com/"&gt;aspspider&lt;/A&gt; I'm just a non-paying tenant with a subdirectory called &lt;A target=_blank href="http://aspspider.info/kjopc/People.svc/people" mce_href="http://aspspider.info/kjopc/People.svc/people"&gt;kjopc&lt;/A&gt;. If there's no clientaccesspolicy.xml (or one that denies access), I'm blocked.&lt;/P&gt;
&lt;P&gt;The moral of the story is to make sure you've got full control over the Web site and domain &lt;EM&gt;before&lt;/EM&gt; you try serving data up to Silverlight 2. Even when you own the domain, check that the hosting provider supports WCF. I use webhost4life.com for a couple of sites. Their low-end ASP.NET 3.5 plan doesn't include WCF.&lt;/P&gt;</description></item><item><title>Using the Silverlight Server Control in ASP.NET Pages</title><link>http://weblogs.asp.net/kencox/archive/2008/08/27/using-the-silverlight-server-control-in-asp-net-pages.aspx</link><pubDate>Wed, 27 Aug 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6571979</guid><dc:creator>Ken Cox [MVP]</dc:creator><author>Ken Cox [MVP]</author><description>&lt;P&gt;Microsoft makes available server controls that help you insert rich media such as Silverlight into your ASP.NET pages. If you’re confused about where to find the latest version of these controls, you’re in good company! Pre-release versions have appeared with various Community Technical Previews (CTP), ASP.NET Futures, and ASP.NET Extensions. &lt;/P&gt;
&lt;P&gt;The code is now (at this hour, anyway) part of the Silverlight 2 Software Development Kit, a free download.&lt;/P&gt;
&lt;P&gt;You need to download the full Silverlight SDK even though you only need a small part of it for use in ASP.NET page. Follow these steps to locate the required file and install it on your computer:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Browse to &lt;A href="http://www.microsoft.com/downloads/" mce_href="http://www.microsoft.com/downloads/"&gt;http://www.microsoft.com/downloads/&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;In the Search box, enter Silverlight 2 Software Development Kit and click Go.&lt;/LI&gt;
&lt;LI&gt;From the list of results, download the latest version of the SDK to a temporary directory on your hard drive.&lt;/LI&gt;
&lt;LI&gt;Using Windows Explorer, double-click the downloaded file (probably named silverlight_sdk.exe) and follow the installation steps to install the complete contents of the SDK.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;For a quick introduction to using the Silverlight server control in ASP.NET and Visual Web Developer 2008 Express, you can view a &lt;A href="http://www.kencox.ca/samplecode/Embedding%20Silverlight%20in%20ASPNET.pdf" target=_blank&gt;PDF&lt;/A&gt; that I've created as an update to my book &lt;A href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;amp;location=http%3A%2F%2Fwww.amazon.com%2FASP-NET-3-5-Dummies-Computer-Tech%2Fdp%2F0470195924&amp;amp;tag=kencca-20&amp;amp;linkCode=ur2&amp;amp;camp=1789&amp;amp;creative=9325" target=_blank mce_href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;amp;location=http%3A%2F%2Fwww.amazon.com%2FASP-NET-3-5-Dummies-Computer-Tech%2Fdp%2F0470195924&amp;amp;tag=kencca-20&amp;amp;linkCode=ur2&amp;amp;camp=1789&amp;amp;creative=9325"&gt;ASP.NET 3.5 For Dummies&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.kencox.ca/samplecode/Embedding%20Silverlight%20in%20ASPNET.pdf"&gt;http://www.kencox.ca/samplecode/Embedding Silverlight in ASPNET.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Ken&lt;/P&gt;</description></item><item><title>Virtual Earth ASP.NET Control Released</title><link>http://weblogs.asp.net/nunogodinho/archive/2008/07/29/virtual-earth-asp-net-control-released.aspx</link><pubDate>Tue, 29 Jul 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6455533</guid><dc:creator>Nuno.Godinho</dc:creator><author>Nuno.Godinho</author><description>&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; As I said some while ago, there are several projects running related with Virtual Earth and one of them is the generation of a Server Control for ASP.NET that will allow us to develop solution and at the same time take some of the complexity of using Virtual Earth, and so &lt;a href="http://blogs.msdn.com/angus_logan/archive/2008/07/28/announcement-windows-live-tools-july-refresh-adds-virtual-earth-asp-net-control.aspx" target="_blank"&gt;here's the announcement&lt;/a&gt; that this control is made available as part of the &lt;a href="http://dev.live.com/tools" target="_blank"&gt;Windows Live Tools July Refresh&lt;/a&gt; and you can even watch a video related to this subject on &lt;a href="http://dev.live.com/blogs/devlive/archive/2008/07/27/386.aspx" target="_blank"&gt;Channel 9&lt;/a&gt; with Mark Brown that is a member of the Virtual Earth Team, where he talks about all the elements that were made available with this control.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; One other very interesting project that is being developed is the Virtual Earth control for Silverlight and that you can see some of the results &lt;a href="http://deepzoom.soulclients.com/VE/" target="_blank"&gt;here&lt;/a&gt;. This project is named &lt;a href="http://www.codeplex.com/deepearth" target="_blank"&gt;Deep Earth&lt;/a&gt; and is hosted on &lt;a href="http://www.codeplex.com" target="_blank"&gt;CodePlex&lt;/a&gt; and for now there's no release made available, but keep looking. For those of you that would like to use Virtual Earth with Silverlight you can use the codeplex project named &lt;a href="http://www.codeplex.com/views" target="_blank"&gt;Views&lt;/a&gt; that as even a video on &lt;a href="http://channel9.msdn.com/posts/jbienz/Virtual-Earth-Mapping-in-Silverlight-with-VIEWS" target="_blank"&gt;Channel 9&lt;/a&gt; that explains it's usage.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; So good luck with your developments using &lt;a href="http://maps.live.com" target="_blank"&gt;Virtual Earth&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Microsoft Silverlight Tools Beta 1 for Visual Studio 2008</title><link>http://weblogs.asp.net/kencox/archive/2008/03/05/microsoft-silverlight-tools-beta-1-for-visual-studio-2008.aspx</link><pubDate>Wed, 05 Mar 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5920869</guid><dc:creator>Ken Cox [MVP]</dc:creator><author>Ken Cox [MVP]</author><description>&lt;p&gt;Wow! A load of goodies today!&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=e0bae58e-9c0b-4090-a1db-f134d9f095fd&amp;amp;DisplayLang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e0bae58e-9c0b-4090-a1db-f134d9f095fd&amp;amp;DisplayLang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=e0bae58e-9c0b-4090-a1db-f134d9f095fd&amp;amp;DisplayLang=en&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This package is an add-on to the RTM release of Visual Studio 2008 to provide tooling for Microsoft Silverlight 2 Beta 1. It provides a Silverlight project system for developing Silverlight applications using C# or Visual Basic.    &lt;br /&gt;This download will install the following: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Silverlight 2 Beta 1 &lt;/li&gt;    &lt;li&gt;Silverlight 2 SDK Beta 1 &lt;/li&gt;    &lt;li&gt;KB949325 for Visual Studio 2008 &lt;/li&gt;    &lt;li&gt;Silverlight Tools Beta 1 for Visual Studio 2008 &lt;/li&gt; &lt;/ul&gt;  &lt;br /&gt;Silverlight Tools Beta 1 for Visual Studio 2008 includes:  &lt;ul&gt;   &lt;li&gt;Visual Basic and C# Project templates &lt;/li&gt;    &lt;li&gt;Intellisense and code generators for XAML &lt;/li&gt;    &lt;li&gt;Debugging of Silverlight applications &lt;/li&gt;    &lt;li&gt;Web reference support &lt;/li&gt;    &lt;li&gt;Integration with Expression Blend&lt;/li&gt; &lt;/ul&gt;</description></item><item><title>ASP.NET 3.5 Extensions Preview</title><link>http://weblogs.asp.net/kencox/archive/2008/03/05/asp-net-3-5-extensions-preview.aspx</link><pubDate>Wed, 05 Mar 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5920819</guid><dc:creator>Ken Cox [MVP]</dc:creator><author>Ken Cox [MVP]</author><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;Check it out!&lt;/p&gt;  &lt;p&gt;&amp;quot;The ASP.NET 3.5 Extensions Preview is a preview of new functionality being added to ASP.NET 3.5 and ADO.NET. The release includes ASP.NET MVC, ASP.NET Dynamic Data, ASP.NET controls for Silverlight, ADO.NET Data Services, Entity Framework runtime, and new features for ASP.NET AJAX.&amp;quot;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=a9c6bc06-b894-4b11-8300-35bd2f8fc908&amp;amp;DisplayLang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=a9c6bc06-b894-4b11-8300-35bd2f8fc908&amp;amp;DisplayLang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=a9c6bc06-b894-4b11-8300-35bd2f8fc908&amp;amp;DisplayLang=en&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>