nickbro Posted November 22, 2011 Posted November 22, 2011 That exact error? Can you paste your from your HAPConfig.xml file please
nickbro Posted November 22, 2011 Posted November 22, 2011 Ok found the issue, just waiting for codeplex to start working properly so I can issue a fix
CHiLL Posted November 22, 2011 Author Posted November 22, 2011 Yeah. The rooms output by SIMS report: IT1 to IT6 BS1 Ha LRC They're the only Resources defined in HAP. Edit; Ooh, ok.
nickbro Posted November 22, 2011 Posted November 22, 2011 I wasn't able to update all of the changes I wanted to make, but I managed to do the main ones before codeplex disconnected me again.
CHiLL Posted November 22, 2011 Author Posted November 22, 2011 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.
CHiLL Posted November 22, 2011 Author Posted November 22, 2011 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
CHiLL Posted November 22, 2011 Author Posted November 22, 2011 (edited) Nope, same error. Edit; What does the invalid token mean? Edited November 22, 2011 by CHiLL
nickbro Posted November 22, 2011 Posted November 22, 2011 Can you repost the error just in case I'm editing the wrong line
CHiLL Posted November 22, 2011 Author Posted November 22, 2011 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.
CHiLL Posted November 22, 2011 Author Posted November 22, 2011 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
CHiLL Posted November 22, 2011 Author Posted November 22, 2011 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.
nickbro Posted November 22, 2011 Posted November 22, 2011 Thanks for your help @CHiLL, I should of double checked the code for the SIMS importing script
CHiLL Posted November 22, 2011 Author Posted November 22, 2011 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
nickbro Posted November 22, 2011 Posted November 22, 2011 Ok, that's an odd error as that line is just checking the SIMS.net export exists in the app_data folder.
CHiLL Posted November 23, 2011 Author Posted November 23, 2011 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
CHiLL Posted November 23, 2011 Author Posted November 23, 2011 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.
nickbro Posted November 23, 2011 Posted November 23, 2011 What comes up when you to the admin page and look at the static bookings tab? Anything?
CHiLL Posted November 23, 2011 Author Posted November 23, 2011 (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 November 23, 2011 by CHiLL
nickbro Posted November 23, 2011 Posted November 23, 2011 That's not what the StaticBookings.xml file should look like
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now