Getting this error: XML parsing failed: syntax error (Line: 1, Character: 1)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ananthu
    New Member
    • Sep 2007
    • 87

    Getting this error: XML parsing failed: syntax error (Line: 1, Character: 1)

    Hi

    I have created one website named OTMS using ASP.NET in a File System Format.My project location is in F: drive(F:\Projec t\OTMS). I have installed IIS properly and the website runs properly in Internet Explorer as a File System Format.

    I have created a new virtual directory(OTMS) in IIS and i have included my website directory(F:\Pr oject\OTMS) which i have designed in file system format and when i run in Opera using the address,

    http://localhost/OTMS/Home.aspx, the following error occurs.

    XML parsing failed: syntax error (Line: 1, Character: 1)

    Reparse document as HTML
    Error:invalid start-tag
    Specification:Extensible Markup Language (XML) 1.0 (Fifth Edition)
    1: <%@ Page Language="VB" AutoEventWireup ="false" CodeFile="Home. aspx.vb" Inherits="Home" %>
    2:
    3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    4:

    Please help me to run the website properly in opera,firefox and others...

    Thanks in advance.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Do you have .net framework installed?

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      When you say it works in Internet Explorer, do you mean it works when you are debugging it (Pressing F5 in Visual Studio to run it)?

      It sounds like you don't have ASP.NET installed or your IIS isn't configured to use it...

      Comment

      • jordan51341
        New Member
        • Jan 2009
        • 2

        #4
        one reason is .Net framework not installed or you should try open the visual studio command and run the command "aspnet_reg iis -i ".

        Comment

        Working...