469,955 Members | 2,053 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,955 developers. It's quick & easy.

"cannot locate resource page1.xaml" when publishing my project

3,406 Expert 2GB
I'm working with my first real xbap project, and I have run into a real wall. Although my project runs just fine when debugging and I get no error while building, immediately as the publish finishes and it opens in my browser it gives an error message that "Cannot locate resource page1.xaml". I have seen a few other posts that were similar, but I couldn't find a solution that helped. Here are some sample suggestions I found while searching for solutions:
  • Make sure page1.xaml -> properties -> build action= page & custom tool= MSBuild:compile --- This was set already
  • This is a bug when projects created in VS2005 are imported into VS2008, rebuild from scratch in VS2008 --- This project was built fresh in VS2008 in the first place, but I tried rebuilding it from scratch with the same results.
  • StartupUri="page1.xaml" needs full path --- page1.xaml is in the root directory

Is there anything else I can try?

Sep 10 '08 #1
1 3507
3,406 Expert 2GB
Resolved, thought I would post my solution.

I was in the middle of a project when VS2008 SP1 came out a couple weeks ago, so I never installed it. I found a bug report on MSDN which said this was fixed in SP1. Downloaded the service pack, installed, and I'm going OK now.
Sep 11 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Happy Li | last post: by
1 post views Thread by Andreas Poller | last post: by
7 posts views Thread by mwt | last post: by
1 post views Thread by ccon67 | last post: by
1 post views Thread by codemania | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.