<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eclipsed4utoo&#039;s Blog&#187; RIA Services</title>
	<atom:link href="http://eclipsed4utoo.com/blog/tag/ria-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://eclipsed4utoo.com/blog</link>
	<description>Not Your Ordinary Programmer</description>
	<lastBuildDate>Thu, 08 Sep 2011 17:09:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Silverlight 4 &#8211; Publishing Application to Remote Server</title>
		<link>http://eclipsed4utoo.com/blog/silverlight-4-publishing-application-remote-server/</link>
		<comments>http://eclipsed4utoo.com/blog/silverlight-4-publishing-application-remote-server/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 21:30:24 +0000</pubDate>
		<dc:creator>Ryan Alford</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[.net 4]]></category>
		<category><![CDATA[RIA Services]]></category>
		<category><![CDATA[Silverlight 4]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[WCF RIA Services]]></category>

		<guid isPermaLink="false">http://eclipsed4utoo.com/blog/?p=366</guid>
		<description><![CDATA[This blog post will talk about the steps needed to publish a Silverlight 4 applications that uses WCF RIA Services for communication.  There were a number of issues that I ran into trying to publish, so I decided to do a blog post to keep other&#8217;s from having to search and hunt for the fixes. [...]]]></description>
			<content:encoded><![CDATA[<p>This blog post will talk about the steps needed to publish a Silverlight 4 applications that uses WCF RIA Services for communication.  There were a number of issues that I ran into trying to publish, so I decided to do a blog post to keep other&#8217;s from having to search and hunt for the fixes.</p>
<p><span style="color: #ff0000;"><strong>NOTE:  These steps are for IIS running on Windows Server 2003 SP2.  Steps may be different for other versions of IIS.</strong></span></p>
<p>1.  First, you will need to fix your web.config file as I have noted in<a href="http://eclipsed4utoo.com/blog/wcf-ria-services-error-moving-service-server/" target="_blank"> this blog post</a>.  This is not added by default.</p>
<p>2. (<strong><span style="color: #ff0000;">Optional</span></strong>) If you are running a .Net 2.0 or .Net 3.5 website on this same server, you will need to create a new AppPool in IIS.  This is required because an AppPool can only run one version of the .Net CLR.  With .Net 4, Microsoft created a new CLR.  Therefore, you will need an AppPool for the .Net 2.0 and .Net 3.5 websites, and an AppPool for the .Net 4 websites.  <strong>NOTE</strong>:  This may have changed in later versions of IIS.</p>
<p>3.  Next, in Visual Studio 2010, you will need to set a number of the references of the .Web project to Copy to Local.  I had to do it for all of the <strong>System.ServiceModel</strong> references.  You may not have all of these references, and that is fine.</p>
<p><img class="alignnone size-full wp-image-370" title="SLImage4" src="http://eclipsed4utoo.com/blog/wp-content/uploads/2010/07/SLImage4.png" alt="SLImage4" width="377" height="111" /></p>
<p>Then go to the <strong>Properties </strong>window, and set <strong>Copy Local</strong> equal to <strong>True</strong>.</p>
<p><img class="alignnone size-full wp-image-371" title="SLImage5" src="http://eclipsed4utoo.com/blog/wp-content/uploads/2010/07/SLImage5.png" alt="SLImage5" width="296" height="183" /></p>
<p>4.  Next, you need to add a new MIME type for both the <strong>.XAP</strong> extension and the <strong>.XAML</strong> extension.</p>
<p>Open the IIS Management console.  Drill-down until you get to your domain/default website.  Right-click and click <strong>Properties</strong>.<br />
<img class="alignnone size-full wp-image-367" title="SLImage1" src="http://eclipsed4utoo.com/blog/wp-content/uploads/2010/07/SLImage1.png" alt="SLImage1" width="282" height="408" /></p>
<p>Next, go to the <strong>HTTP Headers</strong> tab, then click on the <strong>Mime Types&#8230;</strong> button.<br />
<img class="alignnone size-full wp-image-368" title="SLImage2" src="http://eclipsed4utoo.com/blog/wp-content/uploads/2010/07/SLImage2.png" alt="SLImage2" width="472" height="456" /></p>
<p>Now add the two new mime types..<br />
<img class="alignnone size-full wp-image-369" title="SLImage3" src="http://eclipsed4utoo.com/blog/wp-content/uploads/2010/07/SLImage3.png" alt="SLImage3" width="344" height="367" /></p>
<p>Now simply publish your web project to your server, and you should be ready to go.</p>
<p><strong>NOTE</strong>: This blog post does not talk about creating a Virtual Directory or making the Virtual Directory an application.  There are plenty of other blog posts that can walk you through that.  However, make sure the Virtual Directory is set to the AppPool for .Net 4(if it was required for your setup).</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsed4utoo.com/blog/silverlight-4-publishing-application-remote-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WCF RIA Services &#8211; Error When Moving Service To Server</title>
		<link>http://eclipsed4utoo.com/blog/wcf-ria-services-error-moving-service-server/</link>
		<comments>http://eclipsed4utoo.com/blog/wcf-ria-services-error-moving-service-server/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 21:40:45 +0000</pubDate>
		<dc:creator>Ryan Alford</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[RIA Services]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[WP7]]></category>

		<guid isPermaLink="false">http://eclipsed4utoo.com/blog/?p=356</guid>
		<description><![CDATA[I recently tried publishing a WCF RIA Service to my server, and came across an error.  I was using all the latest Windows Phone 7 and RIA Services Tools, and targeting the .Net 4 framework.  However, since I have both .Net 3.5 and .Net 4 installed on my server, I ran into this error&#8230; &#8220;System.Configuration.ConfigurationErrorsException: [...]]]></description>
			<content:encoded><![CDATA[<p>I recently tried publishing a WCF RIA Service to my server, and came across an error.  I was using all the latest Windows Phone 7 and RIA Services Tools, and targeting the .Net 4 framework.  However, since I have both .Net 3.5 and .Net 4 installed on my server, I ran into this error&#8230;</p>
<p><img class="alignnone size-full wp-image-359" title="WCFError1" src="http://eclipsed4utoo.com/blog/wp-content/uploads/2010/06/WCFError1.PNG" alt="WCFError1" width="1254" height="624" /></p>
<p><strong><em>&#8220;System.Configuration.ConfigurationErrorsException: The value for the &#8216;compilerVersion&#8217; attribute in the provider options must be &#8216;v4.0&#8242; or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the &#8216;targetFramework&#8217; attribute from the &lt;compilation&gt; element of the Web.config file.&#8221;</em></strong></p>
<p>It threw me for a loop because it worked fine in Visual Studio 2010 when testing on my development PC, but when moving it to the server, it had this problem.</p>
<p>The fix was fairly easy, once I was able to find it.  Basically, you need to add the a section to the web.config that doesn&#8217;t get added when adding the RIA Services DomainService to the project.</p>
<pre>
<pre class="brush: xml;">
&lt;system.codedom&gt;
  &lt;compilers&gt;
     &lt;compiler language=&quot;c#;cs;csharp&quot; extension=&quot;.cs&quot; warningLevel=&quot;4&quot; type=&quot;Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot;&gt;
       &lt;providerOption name=&quot;CompilerVersion&quot; value=&quot;v4.0&quot; /&gt;
       &lt;providerOption name=&quot;WarnAsError&quot; value=&quot;false&quot; /&gt;
     &lt;/compiler&gt;
  &lt;/compilers&gt;
&lt;/system.codedom&gt;
</pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://eclipsed4utoo.com/blog/wcf-ria-services-error-moving-service-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

