Jump to content

Recommended Posts

Posted


Server Error in '/HAP' Application.

'/Bookings/Booking[@day='1' AND lesson='Period 1' AND room='BS1'' has an invalid token.

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.XPath.XPathException: '/Bookings/Booking[@day='1' AND lesson='Period 1' AND room='BS1'' has an invalid token.

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: 


[XPathException: '/Bookings/Booking[@day='1' AND lesson='Period 1' AND room='BS1'' has an invalid token.]
  MS.Internal.Xml.XPath.XPathParser.CheckToken(LexKind t) +4032718
  MS.Internal.Xml.XPath.XPathParser.ParsePredicate(AstNode qyInput) +72
  MS.Internal.Xml.XPath.XPathParser.ParseStep(AstNode qyInput) +349
  MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +17
  MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +70
  MS.Internal.Xml.XPath.XPathParser.ParseLocationPath(AstNode qyInput) +205
  MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput) +30
  MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput) +19
  MS.Internal.Xml.XPath.XPathParser.ParseUnaryExpr(AstNode qyInput) +31
  MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput) +19
  MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput) +19
  MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion) +54
  System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver) +52
  System.Xml.XPath.XPathNavigator.Select(String xpath) +14
  System.Xml.XmlNode.SelectNodes(String xpath) +45
  HAP.Web.BookingSystem.admin.Default.importSIMS_Click(Object sender, EventArgs args) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:205
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

 

All this is while trying to import the Timetable.xml file (Generated from SIMS report) into HAPs booking system.

Posted

Appears to be the same issue:

Server Error in '/HAP' Application.
'/Bookings/Booking[@day='1' AND lesson='Period 1' AND room='BS1']' has an invalid token.
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.XPath.XPathException: '/Bookings/Booking[@day='1' AND lesson='Period 1' AND room='BS1']' has an invalid token.

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:

[XPathException: '/Bookings/Booking[@day='1' AND lesson='Period 1' AND room='BS1']' has an invalid token.]
  MS.Internal.Xml.XPath.XPathParser.CheckToken(LexKind t) +4032718
  MS.Internal.Xml.XPath.XPathParser.ParsePredicate(AstNode qyInput) +72
  MS.Internal.Xml.XPath.XPathParser.ParseStep(AstNode qyInput) +349
  MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +17
  MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +70
  MS.Internal.Xml.XPath.XPathParser.ParseLocationPath(AstNode qyInput) +205
  MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput) +30
  MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput) +19
  MS.Internal.Xml.XPath.XPathParser.ParseUnaryExpr(AstNode qyInput) +31
  MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput) +19
  MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput) +19
  MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion) +54
  System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver) +52
  System.Xml.XPath.XPathNavigator.Select(String xpath) +14
  System.Xml.XmlNode.SelectNodes(String xpath) +45
  HAP.Web.BookingSystem.admin.Default.importSIMS_Click(Object sender, EventArgs args) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:205
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Posted

erver Error in '/HAP' Application.

'/Bookings/Booking[@day='1' AND @Lesson='Period 1' AND @Room='BS1']' has an invalid token.

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.XPath.XPathException: '/Bookings/Booking[@day='1' AND @Lesson='Period 1' AND @Room='BS1']' has an invalid token.

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: 


[XPathException: '/Bookings/Booking[@day='1' AND @Lesson='Period 1' AND @Room='BS1']' has an invalid token.]
  MS.Internal.Xml.XPath.XPathParser.CheckToken(LexKind t) +4032718
  MS.Internal.Xml.XPath.XPathParser.ParsePredicate(AstNode qyInput) +72
  MS.Internal.Xml.XPath.XPathParser.ParseStep(AstNode qyInput) +349
  MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +17
  MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +70
  MS.Internal.Xml.XPath.XPathParser.ParseLocationPath(AstNode qyInput) +205
  MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput) +30
  MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput) +19
  MS.Internal.Xml.XPath.XPathParser.ParseUnaryExpr(AstNode qyInput) +31
  MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput) +23
  MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput) +19
  MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput) +19
  MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion) +54
  System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver) +52
  System.Xml.XPath.XPathNavigator.Select(String xpath) +14
  System.Xml.XmlNode.SelectNodes(String xpath) +45
  HAP.Web.BookingSystem.admin.Default.importSIMS_Click(Object sender, EventArgs args) +1975
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

 

There you go.

Posted

Different error now...progress!

 

Server Error in '/HAP' Application.

 

This document already has a 'DocumentElement' node.

 

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.InvalidOperationException: This document already has a 'DocumentElement' node.

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: 


[invalidOperationException: This document already has a 'DocumentElement' node.]
  System.Xml.XmlDocument.IsValidChildType(XmlNodeType type) +3975534
  System.Xml.XmlNode.AppendChild(XmlNode newChild) +174
  HAP.Web.BookingSystem.admin.Default.importSIMS_Click(Object sender, EventArgs args) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:213
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Posted

Right, now I'm getting "User Cannot be found" like last week. But I cannot sort this until tomorrow, because it'd take too long to manually add the username into the notes section at the moment. I'll do it when I'm back in work tomorrow.

 

Will update then.

 

Nice work so far btw.

Posted

No worries, I'm happy that you've put your time and knowledge into this project. :)

 

However, I'm now getting this error:

 

Server Error in '/HAP' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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: 


[NullReferenceException: Object reference not set to an instance of an object.]
  HAP.Web.BookingSystem.admin.Default.importSIMS_Click(Object sender, EventArgs args) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:178
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Posted

Yeah, I've even just re-imported the report from SIMS into ~\HAP\App_Data\Timetable.xml:

 

Server Error in '/HAP' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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: 


[NullReferenceException: Object reference not set to an instance of an object.]
  HAP.Web.BookingSystem.admin.Default.importSIMS_Click(Object sender, EventArgs args) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:178
  System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
  System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
  System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Posted
StaticBookings.xml has been populated, but it isn't showing any of them in the actual calendar display. It just says every lesson is free.
Posted (edited)

Attached is a screenshot of what is shows under Static Bookings in the Control Panel of Bookings.

 

Here's a snippet of StaticBookings.xml:

 


 
   BS1
   Mr T Sellick
   Media
   MonA:1
   Year 12
 
 
   Mrs C V Hallwood
   Business
   MonA:2
   Year 10
 

Edited by CHiLL

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...