<?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; WCF RIA Services</title>
	<atom:link href="http://eclipsed4utoo.com/blog/tag/wcf-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>
	</channel>
</rss>

