+ Post New Thread
Results 1 to 7 of 7
Home Access Plus+ Thread, Removing booking in Projects:; Now i have HAP running... Thanks Nick. i'm having a few problems with the Booking System side. 1) i am ...
  1. #1
    Cools's Avatar
    Join Date
    Jan 2009
    Location
    Bedfordshire
    Posts
    498
    Thank Post
    24
    Thanked 62 Times in 57 Posts
    Rep Power
    25

    Removing booking

    Now i have HAP running...
    Thanks Nick.

    i'm having a few problems with the Booking System side.

    1) i am unable to import the sims-exported room booking XML


    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) +4427886
    HAP.Web.BookingSystem.admin.Default.importSIMS_Cli ck(Object sender, EventArgs args) in H:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\admin\Default.aspx. cs:205
    System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +154
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691
    2) Removing a booking im getting this error msg..

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
    Timestamp: Tue, 21 Feb 2012 12:38:09 UTC


    Message: 'console' is undefined
    Line: 318
    Char: 4
    Code: 0
    URI: https://epms-web-01/hap/bookingsystem/
    Thanks..

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,483
    Thank Post
    37
    Thanked 490 Times in 422 Posts
    Rep Power
    110
    Looks like the staticbookings.xml has been corrupted, can you replace this with one from the HAP+ Full Install

  3. #3
    Cools's Avatar
    Join Date
    Jan 2009
    Location
    Bedfordshire
    Posts
    498
    Thank Post
    24
    Thanked 62 Times in 57 Posts
    Rep Power
    25
    Done the replacement But No joy still the same error.

  4. #4
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,483
    Thank Post
    37
    Thanked 490 Times in 422 Posts
    Rep Power
    110
    Can you do some HAP+ JSON Debugging in Firefox (pref)

  5. #5
    Cools's Avatar
    Join Date
    Jan 2009
    Location
    Bedfordshire
    Posts
    498
    Thank Post
    24
    Thanked 62 Times in 57 Posts
    Rep Power
    25
    Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindow.alert]
    [Break On This Error]

    alert(thrownError);

    /hap/b...system/ (line 326)
    GET https://epms-web-01/hap/api/BookingS.../Administrator

    200 OK
    183ms
    jquery....min.js (line 6)
    HeadersResponseJSON
    Sort by key


    0
    0

    1
    1
    DELETE https://epms-web-01/hap/api/BookingS...king/21-2-2012

    405 Method Not Allowed
    20ms
    jquery....min.js (line 6)
    HeadersResponseHTML

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>405 - HTTP verb used to access this page is not allowed.</title>
    <style type="text/css">
    <!--
    body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE}

    fieldset{padding:0 15px 10px 15px;}
    h1{font-size:2.4em;margin:0;color:#FFF}
    h2{font-size:1.7em;margin:0;color:#CC0000}
    h3{font-size:1.2em;margin:10px 0 0 0;color:#000000}
    #header{width:96%margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF
    background-color:#555555}
    #content{margin:0 0 0 2%;position:relative;}
    .content-container{background:#FFFwidth:96%;margin-top:8px;padding:10px;position:relative;}
    -->
    </style>
    </head>
    <body>
    <div id="header"><h1>Server Error</h1></div>
    <div id="content">
    <div class="content-container"><fieldset>
    <h2>405 - HTTP verb used to access this page is not allowed.</h2>
    <h3>The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.</h3>
    </fieldset></div>
    </div>
    </body>
    </html>

    Method Not Allowed
    /hap/b...system/ (line 323)
    error
    /hap/b...system/ (line 324)
    Object { readyState=4, responseText="<!DOCTYPE html PUBLIC "...iv>\r\n</body>\r\n</html>\r\n", status=405, more...}
    /hap/b...system/ (line 325)
    Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMWindow.alert]
    [Break On This Error]

    alert(thrownError);

  6. #6
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,483
    Thank Post
    37
    Thanked 490 Times in 422 Posts
    Rep Power
    110

  7. Thanks to nickbro from:

    Cools (21st February 2012)

  8. #7
    Cools's Avatar
    Join Date
    Jan 2009
    Location
    Bedfordshire
    Posts
    498
    Thank Post
    24
    Thanked 62 Times in 57 Posts
    Rep Power
    25
    doing this worked for me... on that link you gave me...


    Code:
    Remove WebDav from "Modules" and from "Handler Mappings"
     
    Modules:
                    WebDAVModule, %windir%\System32\inetsrv\webdav.dll, Native, Inherited
     
    Handler Mappings:
                    WebDAV, *, Enabled, Unspecified, WebDAVModule, Inherited
     
    Then Restart IIS

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 30
    Last Post: 21st June 2013, 12:31 AM
  2. Replies: 1
    Last Post: 17th January 2011, 02:36 PM
  3. Books & CDS
    By russdev in forum Books and Manuals
    Replies: 19
    Last Post: 22nd March 2006, 02:33 PM
  4. Restricting the use of removeable storage - do you?
    By tarquel in forum School ICT Policies
    Replies: 16
    Last Post: 10th July 2005, 04:13 PM
  5. A Good Free Online PHP Book
    By Diello in forum Coding
    Replies: 1
    Last Post: 22nd June 2005, 10:05 AM

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
  •