+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 20
Home Access Plus+ Thread, Unable to get File Move to Work in Projects:; We're running version 8 (HAP+ Web v8.0.0901.1830) and when I try to drag (ie "Move") a file to a sub-folder ...
  1. #1

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Unable to get File Move to Work

    We're running version 8 (HAP+ Web v8.0.0901.1830) and when I try to drag (ie "Move") a file to a sub-folder it asks me answer OK to "Are you sure you want to move:". It then hangs until I close the dialog box. The file does not move.

    This is not a rights issue as I've been attempting to move within a folder structure where the user has full control (user's home drive). I also tried it as Administrator Equivalent just to be sure of this. Here's the home drive entry from the hapconfig.xml file for the folder that I was trying to do this in:

    <mapping drive="G" name="My Drive G" enablereadto="All" enablewriteto="All" enablemove="True" usagemode="DriveSpace">%homedir%</mapping>

    And, as I just discovered, "file Copy" does not seem to work either. It just hangs with the message on-screen

    Thanks
    Last edited by peterdwyer; 1st October 2012 at 05:41 AM.

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,564
    Thank Post
    38
    Thanked 509 Times in 439 Posts
    Rep Power
    114
    Can you perform some HAP+ JSON Debugging to find out what's going on

  3. #3

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I hope this is what you're looking for. Your instructions say "Click on the XML/JSON tab" but I can't find anything that says that. If I'm wrong, please tell me where to look

    Thanks

    This is from the "Response" tab for the Post


    <!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>404 - File or directory not found.</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:#FFF;width: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>404 - File or directory not found.</h2>
    <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
    </fieldset></div>
    </div>
    </body>
    </html>


    And Here's a Second Attempt

    <!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>404 - File or directory not found.</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:#FFF;width: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>404 - File or directory not found.</h2>
    <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
    </fieldset></div>
    </div>
    </body>
    </html>

  4. #4
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,564
    Thank Post
    38
    Thanked 509 Times in 439 Posts
    Rep Power
    114
    I'm after the URL's of the request and what it's POST'ing to the APIs

  5. #5

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0

    I'm still not sure if this is the right information

    I've attached a text file showing everything that came up in red expanded out. Tried this before and it failed to transmit.

    Hope this is what you need

    Thanks
    Attached Files Attached Files

  6. #6
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,564
    Thank Post
    38
    Thanked 509 Times in 439 Posts
    Rep Power
    114
    Can you go to https://hap.stkevins.vic.edu.au/hap/...i/MyFiles/help

    and tell me what you get

  7. #7

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hmmm. It came up with:
    404 - File or directory not found.

    The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.


  8. #8
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,564
    Thank Post
    38
    Thanked 509 Times in 439 Posts
    Rep Power
    114
    Ok something is wrong with your hap install.

    /hap/api/myfiles/help

    should give you something like this:

    Operations at https://folders.crickhowell-hs.powys...ap/api/myfiles
    This page describes the service operations at this endpoint.
    Uri Method Description
    {Drive}/{*Path} GET Service at https://folders.crickhowell-hs.powys.sch.uk/hap/api/myfiles/{DRIVE}/{PATH}
    Copy POST Service at https://folders.crickhowell-hs.powys...i/myfiles/Copy
    Delete POST Service at https://folders.crickhowell-hs.powys...myfiles/Delete
    Drives GET Service at https://folders.crickhowell-hs.powys...myfiles/Drives
    Exists/{Drive}/{*Path} GET Service at https://folders.crickhowell-hs.powys.sch.uk/hap/api/myfiles/Exists/{DRIVE}/{PATH}
    info/{Drive}/{*Path} GET Service at https://folders.crickhowell-hs.powys.sch.uk/hap/api/myfiles/info/{DRIVE}/{PATH}
    Move POST Service at https://folders.crickhowell-hs.powys...i/myfiles/Move
    New/{Drive}/{*Path} POST Service at https://folders.crickhowell-hs.powys.sch.uk/hap/api/myfiles/New/{DRIVE}/{PATH}
    Preview/{Drive}/{*Path} GET Service at https://folders.crickhowell-hs.powys.sch.uk/hap/api/myfiles/Preview/{DRIVE}/{PATH}
    Properties/{Drive}/{*Path} GET Service at https://folders.crickhowell-hs.powys.sch.uk/hap/api/myfiles/Properties/{DRIVE}/{PATH}
    SendTo/Google/{Drive}/{*Path} POST Service at https://folders.crickhowell-hs.powys.sch.uk/hap/api/myfiles/SendTo/Google/{DRIVE}/{PATH}
    SendTo/SkyDrive/{Drive}/{*Path} POST Service at https://folders.crickhowell-hs.powys.sch.uk/hap/api/myfiles/SendTo/SkyDrive/{DRIVE}/{PATH}
    Unzip POST Service at https://folders.crickhowell-hs.powys.../myfiles/Unzip
    Zip POST Service at https://folders.crickhowell-hs.powys...pi/myfiles/Zip

  9. #9

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Thanks for your reply.

    Now I'm confused. We were previously running version 7.10 and the installation instructions for upgrading to version 8 read: "To upgrade from a previous version, delete everything but your AppData folder, extract all but the AppData folder and run your HAP+ install"

    There was no API folder in the distribution ZIP file (just downloaded it again in case I missed it), so where does it come from? And there is no /MyFiles/api/MyFiles/help folder (referring to your previous advice) beneath the root folder of hap. It stops at hap/MyFiles (which contains only 3 files)

    The url folder that you referred to in an earier message (./hap/MyFiles/api/MyFiles/help) simply doesn't exist

    I thought I'd set everything up correctly according to the instructions when I installed HAP. After copying over the files, I ran the setup and everything registered properly, and the system has been running more or less smoothly for a couple of months. And I've added in some of the "extras" such as "Uptime Live Tiles" without skipping a beat.

    There must be something I missed in the setup if these folders are missing. Is there anything you can think of that I might have missed in setup?

    Thanks

  10. #10
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,564
    Thank Post
    38
    Thanked 509 Times in 439 Posts
    Rep Power
    114
    The folder and files don't exist, it's a virtual path that maps to some code to run.

    This is very odd that the API calls aren't working. The help page should load in the browser. If it isn't then something may be wrong with the HAP.MyFiles.dll

  11. #11

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Thanks for your reply.

    If it works for you, but not me, perhaps it means that might mean that my HAP.MyFiles.dll might be corrupt. Would it do any good to copy the original distribution file over the copy in the bin folder?

    Thanks

  12. #12

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Not wanting to "fry" my production copy of HAP, I did the following in my test environment, which is an exact mirror of the production environment:
    . Replaced entire contents of the hap/bin folder with the files from the initial distribution (HAP+ Web v8.0828.1800)
    . Re-ran the setup (just in case)
    . Refreshed browser and started up a HAP session
    . Tried to do file "copy" (using menus) and "move" (using drag and drop).... both attempts hung

    Thanks

  13. #13
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,564
    Thank Post
    38
    Thanked 509 Times in 439 Posts
    Rep Power
    114
    Ok, bug found and fixed:

    Open ~/myfiles/default.aspx

    Search for
    Code:
    hap.common.resolveUrl('api/MyFiles/Move')
    Replace it with
    Code:
    hap.common.resolveUrl('~/api/MyFiles/Move')

  14. #14

    Join Date
    Jul 2012
    Location
    Melbourne
    Posts
    57
    Thank Post
    11
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Unfortunately still not working

    Thanks for your reply,

    I made the changes that you suggested but still could not get Move or Copy working. I have attached a text file that contains:

    • What I could capture from Firebug
    • The "offending" line #146 referred to in the error message
    • Fragments from the relevant sections of hap/MyFiles/Default.aspx, changed as requested. There are two


    Just a thought (and I know nothing about this so please ignore me if wrong). I Googled the "400 An WCF Error has Occured" and it seemed to refer to messages over a specific default size (64K). I notice that the attached text file is 76K in size, most of it being the "offending" line #146. What I saw seemed to involved increasing a parameter in web.config. As I said I could be barking up the wrong tree

    Thanks
    Attached Files Attached Files

  15. #15
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,564
    Thank Post
    38
    Thanked 509 Times in 439 Posts
    Rep Power
    114
    Ok, I've fixed it, should be working fine in v8.1 which has just been released Home Access Plus+ - Download: v8.1

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 18th May 2011, 02:11 PM
  2. [Website] 4Chan attempt to get Bieber sent to North Korea
    By ZeroHour in forum Jokes/Interweb Things
    Replies: 14
    Last Post: 9th July 2010, 10:41 AM
  3. Replies: 3
    Last Post: 20th January 2010, 09:56 PM
  4. Replies: 9
    Last Post: 30th October 2009, 01:46 PM
  5. Replies: 3
    Last Post: 24th September 2006, 04:18 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
  •