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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

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

    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="pag e1.xaml" needs full path --- page1.xaml is in the root directory


    Is there anything else I can try?

    jared
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    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.

    Comment

    Working...