Reputation: 306
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_topic5
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?
Upvotes: 0
Views: 4994
Reputation: 18980
This could be the cause of many issues .. even XML issues in the web.config above this XML node in the web.config.. perhaps a XML closing "/" on an XML node..
I recently got this error because of a Telerik Rad Controls for ASP.NET AJAX upgrade. The Upgrade Wizard from the Telerik Visual Studio menu automatically converted some settings in my web.config file. It also added some things it shouldn't have. After removing this XML node altogether, it fixed this issue.
<authentication mode="Windows" />
Upvotes: 0
Reputation: 1653
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.
Upvotes: 1