I'm just guessing here, but when you run your app from within Visual Studio, do you have a specific page selected in Solution Explorer? You might want to go ahead and set your default page as the Start Page, which is done by right-clicking the Web Form in Solution Explorer and then click Set as Start Page.