tags:

views:

396

answers:

1

I get that error when trying to "view in browser" from an aspx file in Visual Studio 2008. The complication to the problem is that I'm not actually on the server itself, its a project that's been checked out from source control onto my local machine. I've seen the solution for the problem if I were on the server but my computer is not and has not been configured to run as a server. So is there some way to fix this without setting up my own computer as a server? I'm pretty new to Visual Studio and the .net framework so if I've left something vital out or anything please just ask for clarification.

Thanks in advance!

--edit--

Thanks for the responses guys but the proposed solution won't work since the project is a 'web site' not a 'web project' http://msdn.microsoft.com/en-us/library/aa730880%28VS.80%29.aspx#wapp%5Ftopic5

So I don't have a project file (.csproj) I can right click on to get the properties tab you're talking about. Any more ideas for this problem considering these new facts?

+1  A: 

Right click on the website project properties, go to the Web tab. Under the Servers, there are a couple options. I usually use the default which is "Use Visual Studio Development Server" and "Auto Assign Port".

If this website has been migrated from an earlier version of VS, it might not be set up to run that way (spec. 1.1 used the IIS server locally). If you want to use the IIS server, you will need to run it and config the virtual dir for it.

Decker97
This sounds like exactly the solution I'm looking for but I cannot find 'website project properties'. Should I have the project open, closed? Is it in the solutions explorer, the main menu? Sorry, like I said I'm new to Visual Studio and the thing is enormous!
Trajanus
I'd agree that this is the problem. To make the changes, have the project open in Visual Studio, right click the project in the Project Explorer and select Properties.
Jeff Siver
I don't seem to have these options. When I have the project open and right click on it I have the option for 'Property Pages' but not 'Properties'. When I go to Property Pages I have the tab options of 'References', 'Build', 'Accessibility', 'Start Options', and 'MSBuild Options'. Under the Start Options there is a section labeled 'Server' and there is a radio button marked that says 'Use default web server' but there's no port option or Use Visual Studio Development Server. This is a project I've checked out from source control, not created myself.
Trajanus
Perhaps that has something to do with it? Also when I first ran Visual Studio I chose the web development mode. The version (copied straight from the about) is Microsoft Visual Studio 2008.
Trajanus
The property pages is a similar thing - I get it on a website that is running under 2005. I use the Default Server setting with windows authentication. I'm out of ideas.
Decker97