An Avanade Blogging Community

Welcome to An Avanade Blogging Community Sign in | Join | Help
in Search

Jesse's Avanade Blog

Cannot locate resource "Window1.xaml"

I ran into this strange error today and it's strange because both the error and the solution has nothing to do with "Window1.xaml".  Typically, this is the message you receive if you misnamed "Window1.xaml" in App.xaml's StartupUri attribute.  That was not the case for me today as everything checks out so something else was going on.

I was able to find the solution on this MSDN forum post.  Seems like many people ran across this while trying to run downloaded samples on their local workstations.  The resolution?  Add a space to App.xaml , remove it, then rebuild.  Strange solution but it worked.  I suppose this is a bug in the code .NET 3.0 generates and a simple rebuild on your local workstation fixes it. 

This is in VS 2005, not sure if this has been resolved in VS 2008 yet.

Published Monday, December 17, 2007 5:31 AM by jesseh
Filed Under:

Comments

 

HappyNomad said:

Another solution is possible on the producer side (producing a sample app to post to the web).  You can find it here:
 http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=262350&SiteID=1
January 24, 2008 4:35 AM
Anonymous comments are disabled

This Blog

Post Calendar

<December 2007>
SuMoTuWeThFrSa
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

Syndication