<?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>Vince Plaza&#039;s Blog &#187; Silverlight</title>
	<atom:link href="http://www.vinceplaza.com/category/silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vinceplaza.com</link>
	<description>Microsoft .NET programming ideas and samples</description>
	<lastBuildDate>Sat, 13 Mar 2010 00:07:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>&#8220;Could not find default endpoint&#8221; error with Silverlight, WCF, and MVVM</title>
		<link>http://www.vinceplaza.com/2009/10/16/could-not-find-default-endpoint-error-with-silverlight-wcf-and-mvvm/</link>
		<comments>http://www.vinceplaza.com/2009/10/16/could-not-find-default-endpoint-error-with-silverlight-wcf-and-mvvm/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 22:10:23 +0000</pubDate>
		<dc:creator>Vince Plaza</dc:creator>
				<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[Model-View-ViewModel (MVVM)]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://www.vinceplaza.com/?p=213</guid>
		<description><![CDATA[I have done this a couple of times, and so thought I would log it so that I remember next time. When I set up a Silverlight project using the MVVM pattern, I prefer to make separate projects for the View and ViewModel sections. I then create a service reference to my data service (WCF) [...]]]></description>
			<content:encoded><![CDATA[<p>I have done this a couple of times, and so thought I would log it so that I remember next time. When I set up a Silverlight project using the MVVM pattern, I prefer to make separate projects for the View and ViewModel sections. I then create a service reference to my data service (WCF) in the ViewModels project. If you have tried this, you may have received a &#8220;Cannot find &#8216;ServiceReferences.ClientConfig&#8217; in the .xap application package.&#8221; error message the first time you run the solution. This is caused by the Views project not containing the ServiceReferences.ClientConfig file created in the ViewModels project. No problem, just drag a copy from the ViewModels project into the Views project and you are set to go.</p>
<p>Where I get into trouble is when I reconfigure the WCF service or reference and forget to update the client config file I dragged into the Views project. The error message that gets generated is similar to:</p>
<blockquote><p>Could not find default endpoint element that references contract &#8216;ServiceReference.Service&#8217; in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.</p></blockquote>
<p>Well, I was much happier with the error message telling me the file was missing. With this new message, I end up opening the client config file in the ViewModels project like 6 times looking for a typo, but of course it was auto generated while making the service reference, and so is fine. What I need to do is to replace the ServiceReferences.ClientConfig file in the Views project, and then run the application again. Problem solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinceplaza.com/2009/10/16/could-not-find-default-endpoint-error-with-silverlight-wcf-and-mvvm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Great post on using Dependency Properties with custom user controls in Silverlight</title>
		<link>http://www.vinceplaza.com/2009/09/10/great-post-on-using-dependency-properties-with-custom-user-controls-in-silverlight/</link>
		<comments>http://www.vinceplaza.com/2009/09/10/great-post-on-using-dependency-properties-with-custom-user-controls-in-silverlight/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 06:20:32 +0000</pubDate>
		<dc:creator>Vince Plaza</dc:creator>
				<category><![CDATA[Model-View-ViewModel (MVVM)]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Binding]]></category>
		<category><![CDATA[DependencyProperty]]></category>

		<guid isPermaLink="false">http://www.vinceplaza.com/?p=191</guid>
		<description><![CDATA[I was stuck on implementing data binding with custom Silverlight controls, and found this post to be a lifesaver: http://geekswithblogs.net/PeterTweed/archive/2009/07/05/taking-advantage-of-data-binding-in-silverlight.aspx
]]></description>
			<content:encoded><![CDATA[<p>I was stuck on implementing data binding with custom Silverlight controls, and found this post to be a lifesaver: <a href="http://geekswithblogs.net/PeterTweed/archive/2009/07/05/taking-advantage-of-data-binding-in-silverlight.aspx#">http://geekswithblogs.net/PeterTweed/archive/2009/07/05/taking-advantage-of-data-binding-in-silverlight.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinceplaza.com/2009/09/10/great-post-on-using-dependency-properties-with-custom-user-controls-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
