"StartTag: invalid element name" in default.aspx

When I went into the ASP.NET tab for the virtual directory I noticed the ASP.NET version was not selected (it was an empty combo box). Choosing the .NET framework version did the trick. Thanks.


It appears as if the browser tries to display what it thinks is an XML file, since it gives an error on the second character of the first line. So I think the file is not parsed, but simply returned as is immediately. Check if your IIS server is configured correctly and that it actually parses your ASP tags before returning the page.


When i did this. It worked fine.

Go to this directroy in command prompt C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 Run this command Aspnet_regiis -I

this will install aspnet

Tags:

Asp.Net

Iis