Re: Open ASP.NET Application with visual studio.net



I did all that is written
in Knowledge Base article 306005
,but when I open an application,try to open any web page by right clicking
it in solution explorer of ASP.NET application,pressing view in web browser,I
receive the following message:
Server Error in '/WebApplication2' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: Root element is missing.

Source Error:


[No relevant source lines]


Source File: c:\inetpub\wwwroot\web.config Line: 0


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET
Version:2.0.50215.44
"pvdg42":


"suchdi@xxxxxxxxxxxxxxxx" <suchdinetvisionnetil@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote in message news:E2298BB9-AECC-40CB-ACED-94AC963D0778@xxxxxxxxxxxxxxxx
When I try to open ASP.NET Application,I get the following messagebox:
The webserver reported the following error when attempting to create or
open
the
web project loccated at the following
URL:'http//localhost/Webapplication2'.
HTTP /1.1 500 Internal Server Error.
I cannot execute the application.
How can I repair that error?
I cannot work with web applications with visual studio.net.
But I need

Please tell us which version of Visual Studio you are using. From your
subject line, I'll guess VS 2003?
If I'm correct, have you checked to see that IIS is installed and working
correctly?
Control Panel -> Administrative Tools -> Internet Information Services.
If you don't find IIS, you'll need to install it from your OS CD.
If it appears to be OK, the mapping between IIS and Visual Studio may be
corrupt.
In either case (with IIS up and running), follow the instructions in
Knowledge Base article 306005 to remap VS to IIS:

http://support.microsoft.com/default.aspx?scid=kb;en-us;306005

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.



.



Relevant Pages

  • Re: "An error occurred accessing your Windows SharePoint Services site files"
    ... This really sounds like a Visual Studio .NET or ASP.NET problem. ... Start IIS and see if you can browse ... > FrontPage 2002 Server Extensions, or some vestigial junk from SharePoint, ... > to create a new web site in FrontPage 2003. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Maintaining WS issues
    ... It may be a lot better in VS2008 and/or with WCF. ... dealing with some certain kind of projects in Visual Studio 2005. ... do you mean the IIS server? ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: cant build asp.net project after building once (trouble with ISS)
    ... If I do not restart IIS through the snap ... > local host, and then says it is waiting for a reply from the server. ... After you install the Microsoft .NET Framework SoftwareDevelopment Kit ... or Visual Studio .NET, Microsoft Internet Information Service mappings ...
    (microsoft.public.dotnet.academic)
  • Re: IssueTracker (VB) Starter Kit
    ... > I'm only trying to open the Visual Studio project. ... When it can't find a suitable web server it complains. ... >> machineA(with IIS) can detect this? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Error code 128
    ... It is a new installation of the visual studio. ... Compiler Error Message: The compiler failed with error code 128. ... with the IIS, so I did: ... Finished installing ASP.NET. ...
    (microsoft.public.dotnet.framework.aspnet)