+ Post New Thread
Page 3 of 9 FirstFirst 1234567 ... LastLast
Results 31 to 45 of 135
Home Access Plus+ Thread, Basic Help Needed! in Projects:; 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, ...
  1. #31

    Join Date
    Nov 2010
    Location
    Birmingham, UK
    Posts
    179
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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

  2. #32

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,655
    Thank Post
    43
    Thanked 555 Times in 463 Posts
    Rep Power
    122
    Ok, can you try the attached

  3. #33

    Join Date
    Nov 2010
    Location
    Birmingham, UK
    Posts
    179
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Another error:

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

  4. #34

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,655
    Thank Post
    43
    Thanked 555 Times in 463 Posts
    Rep Power
    122
    Has it saved the StaticBookings.xml file or not?

  5. #35

    Join Date
    Nov 2010
    Location
    Birmingham, UK
    Posts
    179
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    StaticBookings.xml is empty.

  6. #36

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,655
    Thank Post
    43
    Thanked 555 Times in 463 Posts
    Rep Power
    122
    Can you try this version

  7. #37

    Join Date
    Nov 2010
    Location
    Birmingham, UK
    Posts
    179
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Looks like the same error:
    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) +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

  8. #38

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,655
    Thank Post
    43
    Thanked 555 Times in 463 Posts
    Rep Power
    122
    Try this one, just need to track down the error

  9. #39

    Join Date
    Nov 2010
    Location
    Birmingham, UK
    Posts
    179
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    The error has changed, and I can see something amiss:

    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
    That is looking for your path (N:\Visual Studio\..etc) I can't figure out where its getting that from though.

  10. #40

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,655
    Thank Post
    43
    Thanked 555 Times in 463 Posts
    Rep Power
    122
    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.

  11. #41

    Join Date
    Nov 2010
    Location
    Birmingham, UK
    Posts
    179
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Added all the lessons in, and now getting:

    Code:
    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)

  12. #42

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,655
    Thank Post
    43
    Thanked 555 Times in 463 Posts
    Rep Power
    122
    Nope, that shouldn't matter.

    Have you configured your Resources in HAP+

  13. #43

    Join Date
    Nov 2010
    Location
    Birmingham, UK
    Posts
    179
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Yeah, they also match what is coming out of SIMS.

    Here's the entire definitions from hapconfig.xml

    Code:
    <bookingsystem maxbookingsperweek="3" maxdays="14" admins="" keepxmlclean="True" twoweektimetable="True">
        <resources>
        <resources>
          <resource name="BS1" type="Room" admins="" enabled="True" emailadmins="False" enablecharging="False" />
          <resource name="IT1" type="Room" admins="" enabled="True" emailadmins="False" enablecharging="False" />
          <resource name="IT2" type="Room" admins="" enabled="True" emailadmins="False" enablecharging="False" />
          <resource name="IT3" type="Room" admins="" enabled="True" emailadmins="False" enablecharging="False" />
          <resource name="IT4" type="Room" admins="" enabled="True" emailadmins="False" enablecharging="False" />
          <resource name="IT5" type="Room" admins="" enabled="True" emailadmins="False" enablecharging="False" />
          <resource name="IT6" type="Room" admins="" enabled="True" emailadmins="False" enablecharging="False" />
          <resource name="LRC" type="Room" admins="" enabled="True" emailadmins="False" enablecharging="False" />
          <resource name="Ha" type="Room" admins="" enabled="True" emailadmins="False" enablecharging="False" />
        </resources>
        </resources>
        <lessons>
        <lesson name="Before School" type="Lesson" starttime="08:00" endtime="09:00" />
          <lesson name="Period 1" type="Lesson" starttime="09:00" endtime="09:50" />
          <lesson name="Period 2" type="Lesson" starttime="09:50" endtime="10:40" />
          <lesson name="Period 3" type="Lesson" starttime="10:55" endtime="11:45" />
          <lesson name="Period 4" type="Lesson" starttime="11:45" endtime="12:35" />
          <lesson name="Period 5" type="Lesson" starttime="12:35" endtime="13:25" />
          <lesson name="Period 6" type="Lesson" starttime="13:25" endtime="14:15" />
          <lesson name="Period 7" type="Lesson" starttime="14:15" endtime="15:05" />
          <lesson name="After School" type="Lesson" starttime="15:05" endtime="16:00" />
        </lessons>
        <subjects>
          <subject name="Art" />
          <subject name="Business" />
          <subject name="IT" />
          <subject name="Prep for working life" />
          <subject name="Biology" />
          <subject name="Media" />
          <subject name="Dance" />
          <subject name="Drama" />
          <subject name="Performing Arts" />
          <subject name="Product De" />
          <subject name="DT" />
          <subject name="H&amp;Sc" />
          <subject name="Res Materi" />  
          <subject name="Guidance" />
          <subject name="Sports Awa" />
          <subject name="Ch.Dev" />
          <subject name="IT Applied" />
          <subject name="Extended Project" />
          <subject name="Chemistry" />
          <subject name="Psychology" />
          <subject name="Sociology" />
          <subject name="Physics" />
          <subject name="Travel &amp;" />
          <subject name="Certificate of Personal" />
          <subject name="Spanish" />
          <subject name="French" />
          <subject name="MFL Leaders" />
        </subjects>
      </bookingsystem>

  14. #44

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,655
    Thank Post
    43
    Thanked 555 Times in 463 Posts
    Rep Power
    122

  15. #45

    Join Date
    Nov 2010
    Location
    Birmingham, UK
    Posts
    179
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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.



SHARE:
+ Post New Thread
Page 3 of 9 FirstFirst 1234567 ... LastLast

Similar Threads

  1. I need basic help with Thinstaion hard disk deployments.
    By snsweigel in forum Thin Client and Virtual Machines
    Replies: 9
    Last Post: 4th March 2008, 08:44 PM
  2. Replies: 8
    Last Post: 22nd February 2008, 01:34 PM
  3. Help! Need a BIOS re-flashed
    By ajbritton in forum Hardware
    Replies: 2
    Last Post: 28th December 2006, 01:16 PM
  4. Help needed to reconfig my DC's
    By tosca925 in forum Windows
    Replies: 16
    Last Post: 20th November 2006, 11:45 PM
  5. Help needed creating a DMZ
    By pooley in forum Wireless Networks
    Replies: 12
    Last Post: 11th January 2006, 11:42 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •