locked
Root element is missing when trying to launch on iis7 on win2008 RRS feed

  • Question

  • User784669629 posted

    Server Error in '/scheduler' Application.
    --------------------------------------------------------------------------------

    Root element is missing.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Xml.XmlException: Root element is missing.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [XmlException: Root element is missing.]
    System.Xml.XmlTextReaderImpl.Throw(Exception e) +76
    System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) +61
    System.Xml.XmlTextReaderImpl.ParseDocumentContent() +3981356
    System.Xml.XmlTextReaderImpl.Read() +151
    System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +112
    System.Xml.XmlDocument.Load(XmlReader reader) +108
    System.Xml.XmlDocument.LoadXml(String xml) +113
    WebScheduler.OperatorsScreen.Page_Load(Object sender, EventArgs e) +212
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456
    Request Details
    Session Id: x1bgkmingn35s3eksgsomv45 Request Type: GET
    Time of Request: 12/07/2013 19:04:47 Status Code: 500
    Request Encoding: Unicode (UTF-8) Response Encoding: Unicode (UTF-8)
    Trace Information
    Category Message From First(s) From Last(s)
    aspx.page Begin PreInit
    aspx.page End PreInit 0.000102806362261125 0.000103
    aspx.page Begin Init 0.000169853989822729 0.000067
    aspx.page End Init 0.00095319377183413 0.000783
    aspx.page Begin InitComplete 0.000971073139183891 0.000018
    aspx.page End InitComplete 0.000981130283318131 0.000010
    aspx.page Begin PreLoad 0.000990069966993012 0.000009
    aspx.page End PreLoad 0.00101800647847701 0.000028
    aspx.page Begin Load 0.00103113663887449 0.000013
    Unhandled Execution Error
    Root element is missing.
    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
    at System.Xml.XmlDocument.Load(XmlReader reader)
    at System.Xml.XmlDocument.LoadXml(String xml)
    at WebScheduler.OperatorsScreen.Page_Load(Object sender, EventArgs e)
    at System.Web.UI.Control.OnLoad(EventArgs e)
    at System.Web.UI.Control.LoadRecursive()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 0.00850275663527068 0.007472
    Control Tree
    Control UniqueID Type Render Size Bytes (including children) ViewState Size Bytes (excluding children) ControlState Size Bytes (excluding children)
    Schedule ASP.webscheduler_operatorsscreen_aspx 0 0 0
    ctl00 System.Web.UI.ResourceBasedLiteralControl 0 0 0
    frmRefresh System.Web.UI.HtmlControls.HtmlForm 0 0 0
    ctl01 System.Web.UI.LiteralControl 0 0 0
    dtrSchedule System.Web.UI.WebControls.Repeater 0 0 0
    ctl02 System.Web.UI.LiteralControl 0 0 0
    Menu1 skmMenu.Menu 0 0 0
    ctl03 System.Web.UI.LiteralControl 0 0 0
    ctl04 System.Web.UI.LiteralControl 0 0 0
    Session State
    Session Key Type Value
    strUserID System.String
    SelectedScheduleGroupID System.String 1
    SelectedScheduleTitle System.String Helpdesk Tasklist
    SelectedScheduleIsAdmin System.String True
    ScreenRefresh System.String 1
    PopUpPeriod System.String 30
    MaxNoFutureHrs System.String 360
    DeleteCriticalAfter System.String 0
    DeleteNonCriticalAfter System.String 0
    arrSchedules System.String[,] System.String[,]
    Application State
    Application Key Type Value
    Request Cookies Collection
    Name Value Size
    ASP.NET_SessionId x1bgkmingn35s3eksgsomv45 42
    Response Cookies Collection
    Name Value Size
    Headers Collection
    Name Value
    Connection Keep-Alive
    Accept image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
    Accept-Encoding gzip, deflate
    Accept-Language en-GB
    Cookie ASP.NET_SessionId=x1bgkmingn35s3eksgsomv45
    Host localhost
    User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322)
    Response Headers Collection
    Name Value
    X-AspNet-Version 2.0.50727
    Cache-Control private
    Content-Type text/html
    Form Collection
    Name Value
    Querystring Collection
    Name Value
    Server Variables
    Name Value
    ALL_HTTP HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:en-GB HTTP_COOKIE:ASP.NET_SessionId=x1bgkmingn35s3eksgsomv45 HTTP_HOST:localhost HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322)
    ALL_RAW Connection: Keep-Alive Accept: image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */* Accept-Encoding: gzip, deflate Accept-Language: en-GB Cookie: ASP.NET_SessionId=x1bgkmingn35s3eksgsomv45 Host: localhost User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322)
    APPL_MD_PATH /LM/W3SVC/1/ROOT/Webscheduler
    APPL_PHYSICAL_PATH C:\inetpub\wwwroot\WebScheduler\
    AUTH_TYPE
    AUTH_USER
    AUTH_PASSWORD
    LOGON_USER
    REMOTE_USER
    CERT_COOKIE
    CERT_FLAGS
    CERT_ISSUER
    CERT_KEYSIZE
    CERT_SECRETKEYSIZE
    CERT_SERIALNUMBER
    CERT_SERVER_ISSUER
    CERT_SERVER_SUBJECT
    CERT_SUBJECT
    CONTENT_LENGTH 0
    CONTENT_TYPE
    GATEWAY_INTERFACE CGI/1.1
    HTTPS off
    HTTPS_KEYSIZE
    HTTPS_SECRETKEYSIZE
    HTTPS_SERVER_ISSUER
    HTTPS_SERVER_SUBJECT
    INSTANCE_ID 1
    INSTANCE_META_PATH /LM/W3SVC/1
    LOCAL_ADDR ::1
    PATH_INFO /Webscheduler/WebScheduler/OperatorsScreen.aspx
    PATH_TRANSLATED C:\inetpub\wwwroot\WebScheduler\WebScheduler\OperatorsScreen.aspx
    QUERY_STRING
    REMOTE_ADDR ::1
    REMOTE_HOST ::1
    REMOTE_PORT 50329
    REQUEST_METHOD GET
    SCRIPT_NAME /Webscheduler/WebScheduler/OperatorsScreen.aspx
    SERVER_NAME localhost
    SERVER_PORT 80
    SERVER_PORT_SECURE 0
    SERVER_PROTOCOL HTTP/1.1
    SERVER_SOFTWARE Microsoft-IIS/7.5
    URL /Webscheduler/WebScheduler/OperatorsScreen.aspx
    HTTP_CONNECTION Keep-Alive
    HTTP_ACCEPT image/jpeg, image/gif, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
    HTTP_ACCEPT_ENCODING gzip, deflate
    HTTP_ACCEPT_LANGUAGE en-GB
    HTTP_COOKIE ASP.NET_SessionId=x1bgkmingn35s3eksgsomv45
    HTTP_HOST localhost
    HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322)

    --------------------------------------------------------------------------------
    Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456

    Friday, July 12, 2013 2:28 PM

All replies

  • User-851967432 posted

    Are you trying to display an xslt?

    The error is telling you what the problem is...the root element of the xml is missing.

    Friday, July 12, 2013 4:10 PM
  • User784669629 posted

    System.Xml.XmlException: Root element is missing.

    Exception Details: System.Xml.XmlException: Root element is missing.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [XmlException: Root element is missing.]
       System.Xml.XmlTextReaderImpl.Throw(Exception e) +95
       System.Xml.XmlTextReaderImpl.ParseDocumentContent() +5091845
       System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +165
       System.Xml.XmlDocument.Load(XmlReader reader) +134
       System.Xml.XmlDocument.LoadXml(String xml) +123
       WebScheduler.OperatorsScreen.Page_Load(Object sender, EventArgs e) +267
       System.Web.UI.Control.OnLoad(EventArgs e) +132
       System.Web.UI.Control.LoadRecursive() +66
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

    We had a webscheduler application which was sitting on a old windows 2000 box with .net 1.1 version,we then migrated it to a new windows 2008 box by copying the folder of webscheduler on to WWWROOT folder .

    When we configured on new iis7 version and tried launching it got the error stating 

    Root element is missing .

    I see there is only one xml file in webscheduler folder and it is for the menu.

    Any idea what needs to be corrected to launch the webapp?

    Saturday, July 13, 2013 12:54 AM