+ Post New Thread
Page 7 of 9 FirstFirst ... 3456789 LastLast
Results 91 to 105 of 135
Home Access Plus+ Thread, Basic Help Needed! in Projects:; It was starting to look promising, but then I got this trying to import: Code: Server Error in '/HAP' Application. ...
  1. #91

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    It was starting to look promising, but then I got this trying to import:

    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.BookingSystem.admin.<>c__DisplayClass9.<importSIMS_Click>b__0(UserInfo u) +84
       System.Linq.Enumerable.Count(IEnumerable`1 source, Func`2 predicate) +156
       HAP.Web.BookingSystem.admin.Default.importSIMS_Click(Object sender, EventArgs args) +928
       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
    The room names defined in hapconfig.xml match what SIMS has exported.

  2. #92
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,581
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    Can you try emptying the staticbookings.xml file and trying again.
    HTML Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Bookings>
    </Bookings>

  3. #93

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Comes up with the same error that's in post #91.

  4. #94
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,581
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    Ok, that's odd. I just tried it on my test install and it imported everything, had to rename a teacher in the SIMS export but that was removing an extra initial.

    Can you try with this (note the ~/bookingsystem/admin/default.aspx has been edited)

  5. #95

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    That seems to have broken the Import from SIMS button. When I click it, it simply reloads the Main tab of the Control Panel of the Booking System without adding anything into StaticBookings.xml
    Last edited by CHiLL; 25th November 2011 at 12:53 PM.

  6. #96
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,581
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    That's by design actually. If it's reloading the page correctly and not showing any errors then it's working

  7. #97

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    What next then? :|

  8. #98
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,581
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    Is it still not importing the Timetabled Lessons?

  9. #99

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    No, it isn't.

  10. #100
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,581
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    Hmm, very odd, I just checked my test version again, and it is importing my XML file. It does redirect back to the admin home page when it's done now to avoid any issues with reloading the data grids. But the XML file was populated

  11. #101

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I'll check again in work tomorrow, but it certainly wasn't updating the XML file last time.

    I'd consider trying to reinstall it, but I would probably miss all sorts of personalisation in the files.

  12. #102

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    What should the SIMS report outpul XML file be called? It's called Timetable.XML at the moment, as I'm sure that's what you've said. But above the import button within HAP, it states it must be called "sims-bookings.xml".

    If I create it called sims-bookings.xml, I get the following error:

    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.BookingSystem.admin.<>c__DisplayClass9.<importSIMS_Click>b__0(UserInfo u) in H:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:192
       System.Linq.Enumerable.Count(IEnumerable`1 source, Func`2 predicate) +156
       HAP.Web.BookingSystem.admin.Default.importSIMS_Click(Object sender, EventArgs args) in H:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:192
       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

  13. #103
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,581
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    It should now be called sims-bookings.xml, it was timetable, but that wasn't what the GUI was saying it wanted. Also timetable and timetables.xml were confusing.

  14. #104

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Any thinking about the error I'm now facing?

  15. #105
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,581
    Thank Post
    39
    Thanked 513 Times in 443 Posts
    Rep Power
    115
    Will have a look tonight

SHARE:
+ Post New Thread
Page 7 of 9 FirstFirst ... 3456789 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, 07:44 PM
  2. Replies: 8
    Last Post: 22nd February 2008, 12:34 PM
  3. Help! Need a BIOS re-flashed
    By ajbritton in forum Hardware
    Replies: 2
    Last Post: 28th December 2006, 12:16 PM
  4. Help needed to reconfig my DC's
    By tosca925 in forum Windows
    Replies: 16
    Last Post: 20th November 2006, 10:45 PM
  5. Help needed creating a DMZ
    By pooley in forum Wireless Networks
    Replies: 12
    Last Post: 11th January 2006, 10: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
  •