Issues with JSON
Posted: Wed 12 Mar 2014 21:03
Are there any known issues with dotConnect for Oracle and JSON web requests? I am trying to populate a few cascading drop-down lists via JSON web requests to some web services, but I keep getting sporadic errors. Here are the errors I get in no specific order:
1. Byte array for GUID must be exactly 16 bytes long.
2. Object reference not set to an instance of an object.
{"Cannot access a disposed object.\r\nObject name: 'DataContext accessed after Dispose.'."}
3. Error on opening DbConnection. ConnectionString property not initialized.
4. Cannot access a disposed object. Object name: 'ITable'.
The table I am pulling records from does have a GUID field, but all of the data is valid. I should also mention those same methods work perfectly when called within an AJAX panel and with AutoPostBack set to true. They just do not work consistently once the calls are turned into JSON web requests. Sometimes, there are no errors, but at some point an error will be thrown even if the same values worked just moments before ago.
If you need to see any code, just let me know which piece you need. I couldn't find anything in the forums about people using JSON.
1. Byte array for GUID must be exactly 16 bytes long.
2. Object reference not set to an instance of an object.
{"Cannot access a disposed object.\r\nObject name: 'DataContext accessed after Dispose.'."}
3. Error on opening DbConnection. ConnectionString property not initialized.
4. Cannot access a disposed object. Object name: 'ITable'.
The table I am pulling records from does have a GUID field, but all of the data is valid. I should also mention those same methods work perfectly when called within an AJAX panel and with AutoPostBack set to true. They just do not work consistently once the calls are turned into JSON web requests. Sometimes, there are no errors, but at some point an error will be thrown even if the same values worked just moments before ago.
If you need to see any code, just let me know which piece you need. I couldn't find anything in the forums about people using JSON.