+ Post New Thread
Page 5 of 9 FirstFirst 123456789 LastLast
Results 61 to 75 of 135
Home Access Plus+ Thread, Basic Help Needed! in Projects:; Nope....
  1. #61

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Nope.

  2. #62
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    Can you repost the error just in case I'm editing the wrong line

  3. #63

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Code:
    erver 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) +1975
       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
    There you go.

  4. #64
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    Try again

  5. #65

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Different error now...progress!

    Server Error in '/HAP' Application.

    This document already has a 'DocumentElement' node.

    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.

    Code:
    Exception Details: System.InvalidOperationException: This document already has a 'DocumentElement' node.
    
    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: This document already has a 'DocumentElement' node.]
       System.Xml.XmlDocument.IsValidChildType(XmlNodeType type) +3975534
       System.Xml.XmlNode.AppendChild(XmlNode newChild) +174
       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:213
       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

  6. #66
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    Try this one please, getting there

  7. #67

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Right, now I'm getting "User Cannot be found" like last week. But I cannot sort this until tomorrow, because it'd take too long to manually add the username into the notes section at the moment. I'll do it when I'm back in work tomorrow.

    Will update then.

    Nice work so far btw.

  8. #68
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    Thanks for your help @CHiLL, I should of double checked the code for the SIMS importing script

  9. #69

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    No worries, I'm happy that you've put your time and knowledge into this project.

    However, I'm now getting this 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.Default.importSIMS_Click(Object sender, EventArgs args) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:178
       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

  10. #70
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    Ok, that's an odd error as that line is just checking the SIMS.net export exists in the app_data folder.

  11. #71

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Yeah, I've even just re-imported the report from SIMS into ~\HAP\App_Data\Timetable.xml:

    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.Default.importSIMS_Click(Object sender, EventArgs args) in N:\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx.cs:178
       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

  12. #72

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    StaticBookings.xml has been populated, but it isn't showing any of them in the actual calendar display. It just says every lesson is free.

  13. #73
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    What comes up when you to the admin page and look at the static bookings tab? Anything?

  14. #74

    Join Date
    Nov 2010
    Location
    Liverpool, UK
    Posts
    178
    Thank Post
    10
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Attached is a screenshot of what is shows under Static Bookings in the Control Panel of Bookings.

    Here's a snippet of StaticBookings.xml:

    Code:
    <?xml version="1.0" standalone="yes"?>
    <SuperStarReport>
      <Record>
        <Name>BS1</Name>
        <MainTeacher>Mr T Sellick</MainTeacher>
        <Description>Media</Description>
        <Name1>MonA:1</Name1>
        <YearGroup>Year 12</YearGroup>
      </Record>
      <Record>
        <MainTeacher>Mrs C V Hallwood</MainTeacher>
        <Description>Business</Description>
        <Name1>MonA:2</Name1>
        <YearGroup>Year 10</YearGroup>
      </Record>
     </SuperStarReport>
    Attached Thumbnails Attached Thumbnails Basic Help Needed!-static.png  
    Last edited by CHiLL; 23rd November 2011 at 02:27 PM.

  15. #75
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,550
    Thank Post
    38
    Thanked 505 Times in 436 Posts
    Rep Power
    114
    That's not what the StaticBookings.xml file should look like
    HTML Code:
    <?xml version="1.0" encoding="utf-8"?>
    <Bookings>
      <Booking day="1" lesson="Lesson 2" room="E3" name="A-Level Performing Arts" username="johnc" />
      <Booking day="1" lesson="Lesson 3" room="E3" name="Year 7 English" username="johnc" />
      <Booking day="1" lesson="Lesson 4" room="E3" name="Year 10 English" username="johnc" />
      <Booking day="1" lesson="Lesson 5" room="E3" name="Year 9 English" username="johnc" />

SHARE:
+ Post New Thread

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
  •