nickbro Posted November 21, 2011 Posted November 21, 2011 Can you paste a bit of the XML report that you got from SIMS, just 1 item would be great
nickbro Posted November 21, 2011 Posted November 21, 2011 Ah, spotted the issue straight away. HAP+ doesn't support letters for the days. It's set to use Mon1:1, or Mon6:1. Will have to have a think on converting it
nickbro Posted November 21, 2011 Posted November 21, 2011 Are the Day Numbers for you MonA TueA WedA ...FriB or MonA TueB
CHiLL Posted November 21, 2011 Author Posted November 21, 2011 It's exported as MonA:1, MonA:2..etc TueA:1, TueA:2..etc until ThuB:1, ThuB:2..etc FriB:1, FriB:2..etc The Day numbers are: MonA, TueA, WedA, ThuA, FriA MonB, TueB, WedB, ThuB, FriB
CHiLL Posted November 21, 2011 Author Posted November 21, 2011 Another error: 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) +1803 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 I feel like I'm causing you a right load of grief.
nickbro Posted November 21, 2011 Posted November 21, 2011 Has it saved the StaticBookings.xml file or not?
CHiLL Posted November 21, 2011 Author Posted November 21, 2011 Looks like the same error: 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) +1803 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 21, 2011 Posted November 21, 2011 Try this one, just need to track down the error
CHiLL Posted November 21, 2011 Author Posted November 21, 2011 The error has changed, and I can see something amiss: 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 That is looking for your path (N:\Visual Studio\..etc) I can't figure out where its getting that from though.
nickbro Posted November 21, 2011 Posted November 21, 2011 Woo, that's the data I was looking for, the code line. Right that error can't find a matching lesson in the HAP+ configuration. Check you have Lessons defined in HAP+. The usual format should apply though, e.g. "lesson 1". The importer will remove everything up to the 1 and then use that 1 to try match against the SIMS Export.
CHiLL Posted November 21, 2011 Author Posted November 21, 2011 Added all the lessons in, and now getting: 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.Configuration.Resources..ctor(XmlDocument& doc) +280 HAP.Web.Configuration.BookingSystem.get_Resources() +56 HAP.Web.BookingSystem._new.Page_Load(Object sender, EventArgs e) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\Default.aspx.cs:17 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +91 System.Web.UI.Control.LoadRecursive() +74 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 Does it matter whether our lessons are called Period 1, Period 2, etc, and have extra slots for Before and after school? (Removing them doesn't eliminate the problem)
nickbro Posted November 21, 2011 Posted November 21, 2011 Nope, that shouldn't matter. Have you configured your Resources in HAP+
CHiLL Posted November 21, 2011 Author Posted November 21, 2011 Yeah, they also match what is coming out of SIMS. Here's the entire definitions from hapconfig.xml
CHiLL Posted November 21, 2011 Author Posted November 21, 2011 Is this because I'm having problems importing the Timetable.xml file? v7 should be automated, or that's what it says in your video. Manually adding them in is going to take a long time! By adding them in manually, how do I get HAP to distinguish between WeekA and WeekB? Your video just adds Day 1, Lesson 2, Lesson 3, etc.
CHiLL Posted November 21, 2011 Author Posted November 21, 2011 I cannot access the booking system at all, it falls over with the error quoted in: this post
CHiLL Posted November 21, 2011 Author Posted November 21, 2011 I apologise for the above errors, it was an oversight on my part, I hate extra statements in confusing it. I had an extra statements before and after the Resources, which were making it fall over. Now I'm getting this error when importing from SIMS: 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
CHiLL Posted November 22, 2011 Author Posted November 22, 2011 Still having issues with this, can't figure it out.
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