I cannot access the booking system at all, it falls over with the error quoted in: this post
I cannot access the booking system at all, it falls over with the error quoted in: this post
I apologise for the above errors, it was an oversight on my part, I hate extra statements in confusing it. I had an extra <Resource></Resource> statements before and after the Resources, which were making it fall over.
Now I'm getting this error when importing from SIMS:
Code:Server Error in '/HAP' Application. Sequence contains no matching element 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: Sequence contains no matching element 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: Sequence contains no matching element] System.Linq.Enumerable.Single(IEnumerable`1 source, Func`2 predicate) +554 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:208 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
Still having issues with this, can't figure it out.![]()
What's the error you are now getting?
The one in the post #47.
That exact error?
Can you paste your <Lessons> from your HAPConfig.xml file please
Ok found the issue, just waiting for codeplex to start working properly so I can issue a fix
Yeah. The rooms output by SIMS report:
IT1 to IT6
BS1
Ha
LRC
They're the only Resources defined in HAP.
Edit; Ooh, ok.![]()
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.
All this is while trying to import the Timetable.xml file (Generated from SIMS report) into HAPs booking system.Code: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
Ok try again with this
Appears to be the same issue:
Code: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
Ok try this one
Nope, same error.
Edit; What does the invalid token mean?
Last edited by CHiLL; 22nd November 2011 at 03:08 PM.
And this one?
There are currently 1 users browsing this thread. (0 members and 1 guests)