Jump to content

Recommended Posts

Posted (edited)

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

Edited by Paul-K
Posted (edited)

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?

Edited by tj2419
Posted

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":"KeyNotFoundException"}

Posted

[TABLE=class: netInfoPostJSONTable]

[TR=class: netInfoPostJSONTitle]

Below are the response headers, post, response, XML and JSON, I've included everything this time to be sure. Thanks

Response Headers



[TD="class: netInfoParamName"]Cache-Control

[TD="class: netInfoParamValue"]private



[TD="class: netInfoParamName"]Content-Length

[TD="class: netInfoParamValue"]111



[TD="class: netInfoParamName"]Content-Type

[TD="class: netInfoParamValue"]application/xml; charset=utf-8



[TD="class: netInfoParamName"]Date

[TD="class: netInfoParamValue"]Wed, 01 May 2013 12:55:22 GMT



[TD="class: netInfoParamName"]Server

[TD="class: netInfoParamValue"]Microsoft-IIS/7.5



[TD="class: netInfoParamName"]X-AspNet-Version

[TD="class: netInfoParamValue"]4.0.30319



[TD="class: netInfoParamName"]X-Powered-By

[TD="class: netInfoParamValue"]ASP.NET


Request Headers



[TD="class: netInfoParamName"]Accept

[TD="class: netInfoParamValue"]application/json, text/javascript, */*; q=0.01



[TD="class: netInfoParamName"]Accept-Encoding

[TD="class: netInfoParamValue"]gzip, deflate



[TD="class: netInfoParamName"]Accept-Language

[TD="class: netInfoParamValue"]en-US,en;q=0.5



[TD="class: netInfoParamName"]Content-Length

[TD="class: netInfoParamValue"]192



[TD="class: netInfoParamName"]Content-Type

[TD="class: netInfoParamValue"]application/json; charset=UTF-8



[TD="class: netInfoParamName"]Cookie

[TD="class: netInfoParamValue"]ASP.NET_SessionId=kuhadvdrp5maqd0aviowl0br; .ASPXAUTH=C62FF32D28FE21661510876EB6E8D6B76A6EA11A7D501EC08E3AA1BFCAF7AA756AEF58C8498C4BA04FDD4BF7F7A1DE7B67FE41AC32DF728F607091EA4636CA2ED01367417E54F88B3AA713B08ECF80013A79BC8BC9F34909CF90AB49348126C5B98431CE3D5DE7136D6780E4DBEB58221395F7D7E56FC7D4E9A1B1DE880741BB; token=ApkgHm3ifW2OTZNQvc9Q6waoC1DO7VcO+zEXPOe1aAg=



[TD="class: netInfoParamName"]Host

[TD="class: netInfoParamValue"]homeaccess.welford.bham.sch.uk



[TD="class: netInfoParamName"]Referer

[TD="class: netInfoParamValue"]https://homeaccess.welford.bham.sch.uk/setup.aspx



[TD="class: netInfoParamName"]User-Agent

[TD="class: netInfoParamValue"]Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0



[TD="class: netInfoParamName"]X-Requested-With

[TD="class: netInfoParamValue"]XMLHttpRequest


 

 

POST

JSON

[TD=class: netInfoPostJSONBody]

[TABLE=class: domTable]

[TD=width: 70%]

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]drive

[TD=class: memberValueCell]"H"

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]enablemove

[TD=class: memberValueCell]false

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]enablereadto

[TD=class: memberValueCell]"All"

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]enablewriteto

[TD=class: memberValueCell]"All"

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]name

[TD=class: memberValueCell]"Home Drive"

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]origdrive

[TD=class: memberValueCell]"H"

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]origunc

[TD=class: memberValueCell]"%homedir% "

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]unc

[TD=class: memberValueCell]"%homedir% "

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]usagemode

[TD=class: memberValueCell]"Quota"

[TABLE=class: netInfoPostSourceTable]

[TR=class: netInfoPostSourceTitle]

[TD=colspan: 2]Source

[TD=colspan: 2]

{ "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":"KeyNotFoundException"}

 

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

[TABLE=class: domTable]

[TR=class: memberRow userRow]

[TD=class: memberLabelCell]Message

[TD=class: memberValueCell]"The given key was not present in the dictionary."

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]Detail

[TD=class: memberValueCell]null

[TR=class: memberRow userRow]

[TD=class: memberHeaderCell]

[TD=class: memberLabelCell]FaultType

[TD=class: memberValueCell]"KeyNotFoundException"

 

 

Posted
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
  • 3 weeks later...
Posted (edited)

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.

 

[color=#333333]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."[/color]

 

EDIT:

 

Ahahaha! In one of your string configs you have put

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)

Edited by SovietRussia

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...