Jump to content

Recommended Posts

Posted
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
Posted

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

Posted

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.

Posted

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

Posted

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.

Posted
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.
Posted

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)

Posted

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.

Posted

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

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...