+ Post New Thread
Results 1 to 10 of 10
Home Access Plus+ Thread, Problems editing already mapped drive in HAP v9.1 in Projects:; Hi Guys, I seem to have a problem when trying to edit an already mapped home drive, it comes up ...
  1. #1

    Join Date
    Apr 2013
    Location
    Birmingham
    Posts
    119
    Thank Post
    5
    Thanked 4 Times in 4 Posts
    Rep Power
    4

    Problems editing already mapped drive in HAP v9.1

    Hi Guys,

    I seem to have a problem when trying to edit an already mapped home drive, it comes up with "An WCF Error has Occured" in IE9 and "The given key was not present in the dictionary" in chrome, firefox and safari.

    When trying to edit any other mapped drive it says:

    "The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter HAP.Web.API:origunc. The InnerException message was 'There was an error deserializing the object of type System.String. Encountered unexpected character 's'.'. Please see InnerException for more details."

    Any help would be much appreciated
    Last edited by Paul-K; 1st May 2013 at 01:36 PM.

  2. #2

    Join Date
    May 2011
    Location
    United Kingdom
    Posts
    520
    Thank Post
    126
    Thanked 18 Times in 18 Posts
    Rep Power
    11
    I have exactly the same issue.

    Just found this and removed it manually. All seems ok now.

    You can try editing the hapConfig.xml directly if you are having problems
    have you had any problems with creating folders in IE 9? Or allowing teachers to access the room bookings?
    Last edited by tj2419; 1st May 2013 at 01:41 PM.

  3. #3

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,644
    Thank Post
    43
    Thanked 547 Times in 458 Posts
    Rep Power
    121
    Any errors like this will need some HAP+ JSON Debugging to find out what the browser is sending to the server to find out what it's not liking

  4. #4

    Join Date
    Apr 2013
    Location
    Birmingham
    Posts
    119
    Thank Post
    5
    Thanked 4 Times in 4 Posts
    Rep Power
    4
    Hi Nick,

    Thanks for the prompt responce, below is the error from firefox as requested:

    XML Parsing Error: not well-formed
    Location: moz-nullprincipal:{7615691a-6062-43ca-9ae8-a1f93b6d1ee4}
    Line Number 1, Column 1:

    {"Message":"The given key was not present in the dictionary.","Detail":null,"FaultType":"KeyNotFoun dException"}

  5. #5

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,644
    Thank Post
    43
    Thanked 547 Times in 458 Posts
    Rep Power
    121
    Can you provide what was POST'd to the server, that's the response

  6. #6

    Join Date
    Apr 2013
    Location
    Birmingham
    Posts
    119
    Thank Post
    5
    Thanked 4 Times in 4 Posts
    Rep Power
    4
    Below are the response headers, post, response, XML and JSON, I've included everything this time to be sure. Thanks

    Response Headers
    Cache-Control private
    Content-Length 111
    Content-Type application/xml; charset=utf-8
    Date Wed, 01 May 2013 12:55:22 GMT
    Server Microsoft-IIS/7.5
    X-AspNet-Version 4.0.30319
    X-Powered-By ASP.NET
    Request Headers
    Accept application/json, text/javascript, */*; q=0.01
    Accept-Encoding gzip, deflate
    Accept-Language en-US,en;q=0.5
    Content-Length 192
    Content-Type application/json; charset=UTF-8
    Cookie ASP.NET_SessionId=kuhadvdrp5maqd0aviowl0br; .ASPXAUTH=C62FF32D28FE21661510876EB6E8D6B76A6EA11A 7D501EC08E3AA1BFCAF7AA756AEF58C8498C4BA04FDD4BF7F7 A1DE7B67FE41AC32DF728F607091EA4636CA2ED01367417E54 F88B3AA713B08ECF80013A79BC8BC9F34909CF90AB49348126 C5B98431CE3D5DE7136D6780E4DBEB58221395F7D7E56FC7D4 E9A1B1DE880741BB; token=ApkgHm3ifW2OTZNQvc9Q6waoC1DO7VcO+zEXPOe1aAg=
    Host homeaccess.welford.bham.sch.uk
    Referer https://homeaccess.welford.bham.sch.uk/setup.aspx
    User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0
    X-Requested-With XMLHttpRequest


    POST

    JSON
    drive "H"
    enablemove false
    enablereadto "All"
    enablewriteto "All"
    name "Home Drive"
    origdrive "H"
    origunc "%homedir% "
    unc "%homedir% "
    usagemode "Quota"
    Source
    { "origdrive": "H", "origunc": "%homedir% ", "drive": "H", "name": "Home Drive", "unc": "%homedir% ", "enablemove": false, "enablereadto": "All", "enablewriteto": "All", "usagemode": "Quota" }

    Responce

    {"Message":"The given key was not present in the dictionary.","Detail":null,"FaultType":"KeyNotFoun dException"}

    XML

    Parsing Error: not well-formedLocation: moz-nullprincipal:{7615691a-6062-43ca-9ae8-a1f93b6d1ee4}Line Number 1, Column 1:

    {"Message":"The given key was not present in the dictionary.","Detail":null,"Fau...^


    JSON
    Message "The given key was not present in the dictionary."
    Detail null
    FaultType "KeyNotFoundException"


  7. #7

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,644
    Thank Post
    43
    Thanked 547 Times in 458 Posts
    Rep Power
    121
    Thanks for that, everything looks correct there, I'll have to do some checking my end now. In the mean time you can edit the configuration directly in the hapConfig.xml file in App_Data

  8. #8

    Join Date
    Apr 2013
    Location
    Birmingham
    Posts
    119
    Thank Post
    5
    Thanked 4 Times in 4 Posts
    Rep Power
    4
    Thanks Nick, Your help and expertise are much appreciated.

  9. #9
    Freedom's Avatar
    Join Date
    Feb 2007
    Location
    England - Midlands
    Posts
    42
    Thank Post
    6
    Thanked 5 Times in 4 Posts
    Rep Power
    16
    In this case could it be the space at the end of the % before the "?

    origunc "%homedir% "
    unc "%homedir% "

  10. #10
    SovietRussia's Avatar
    Join Date
    Mar 2013
    Location
    Powys, Wales
    Posts
    686
    Thank Post
    75
    Thanked 157 Times in 122 Posts
    Rep Power
    49
    A space would deffo cause an error, but not the error being described.

    The error described is to due to with string sterilization and it finding the character "s'." where it should not be there.

    Code:
    The InnerException message was 'There was an error deserializing the object of type System.String. Encountered unexpected character 's'.'. Please see InnerException for more details."
    EDIT:

    Ahahaha! In one of your string configs you have put
    Code:
    s'.
    and it cannot parse the ' - Remove this? I'm sure its worth a try.

    (If you don't have any strings like that, I am not sure, but that is what the error is indicating)
    Last edited by SovietRussia; 22nd May 2013 at 02:47 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. Problem with removing a drive in my files
    By Oaktech in forum Home Access Plus+
    Replies: 4
    Last Post: 25th February 2013, 11:05 AM
  2. Multiple mapped drive problem
    By mullet_man in forum Scripts
    Replies: 7
    Last Post: 10th September 2008, 08:54 PM
  3. Odd mapped drive problem...
    By Ben_Stanton in forum Windows
    Replies: 2
    Last Post: 11th July 2008, 09:31 AM
  4. Accssing mapped drives in word
    By Uraken in forum Windows
    Replies: 7
    Last Post: 19th October 2006, 07:24 AM
  5. Replies: 4
    Last Post: 7th December 2005, 08:09 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
  •