Why does the build change the startpage of my project to ClientBin/TestPage.html
Last post 05-01-2008 3:45 PM by coughlinj. 6 replies.
Sort Posts:
05-01-2008 5:49 AM
Why does the build change the startpage of my project to ClientBin/TestPage.html

I have a Silverlight 2.0 application with a standard WebApplication project to test it.

 

For some reason every time I build the project and run it with the debugger it starts up the TestPage.html under the ClientBin directory?  This means all my images in ClientBin aren't found.  I have to manually set the start page to the .aspx in the root folder of the Web Project every time I run.  Why isn't this setting saved and where does this TestPage.html come from?

 

Thanks,

Justin

coughlinj

Joined on 03-07-2008
Vancouver
Posts 43
05-01-2008 5:53 AM
Re: Why does the build change the startpage of my project to ClientBin/TestPage.html

In Project -> Properties, under Debug tab, set the start action to run your aspx page. Right now it seems that you have it on  "dynamically generate a test page" option.

texmex5

Joined on 03-04-2008
Estonia
Posts 27
05-01-2008 6:03 AM
Re: Why does the build change the startpage of my project to ClientBin/TestPage.html

Wow quick answer.  Where do I find these properties?

There is no project menu that I can see.  Also the properties pages that are shown when I select the web project in the solution explorer don't have the debug options you speak of.

Thanks for your help.

coughlinj

Joined on 03-07-2008
Vancouver
Posts 43
05-01-2008 6:28 AM
Re: Why does the build change the startpage of my project to ClientBin/TestPage.html

I am using Visual Studio 2008 and in there I have 2 possibilities to get to Project properties.

  1. If you have the Solution Explorer then there is a folder Properties, in what we have ApplicationManifest.xml file. If you double click the Properties then the right file will open up.
  2. In menu Project select [ProjectName] Properties and the right place will open up.
  3. And in the properties file you have to open up the debug tab and you will know what to do from there.
texmex5

Joined on 03-04-2008
Estonia
Posts 27
05-01-2008 12:14 PM
Re: Why does the build change the startpage of my project to ClientBin/TestPage.html

By default, when you create a hosting website, it sets the hosting site's default start page to the test page.  If you open the Web App's properties (either double-click the Properties (C#) or My Project (VB) folder in Solution Explorer, or right-click the project and select Properties); from there select the Web tab, and you'll see that the Start Action is set to the specific test page.

 I'm not sure why your setting isn't being saved, I'll look into it and see if this is expected or not.

---------
If this post has solved your problem, please select 'Mark as answer'

SDET, Microsoft Web Developer team

jamlew

Joined on 09-21-2007
Bellevue, WA
Posts 116
05-01-2008 12:31 PM
Marked as Answer
Re: Why does the build change the startpage of my project to ClientBin/TestPage.html

Seems I slightly misunderstood your issue.  Can you make sure when you're seeing this behavior that the Silverlight project is the active project?  It should be set to the WAP if you want the pages in the WAP to be run.  This should be done automatically when you first create the project, but if you change it you'll see the behavior you're describing.

---------
If this post has solved your problem, please select 'Mark as answer'

SDET, Microsoft Web Developer team

jamlew

Joined on 09-21-2007
Bellevue, WA
Posts 116
05-01-2008 3:45 PM
Re: Why does the build change the startpage of my project to ClientBin/TestPage.html

This was indeed the problem.  Neither project was set as the start-up project.  This seems to happen randomly from now to then.  I need the web project as the start-up project as that is where my test page is located.

I think the loss of a start-up project occurs when I put my project into source control so it could be the result of removing the solutions suo file.  Not sure if that's where this value is stored.

Anyways seems to work now thanks to both of you for your help.

Justin

coughlinj

Joined on 03-07-2008
Vancouver
Posts 43