Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

HTTP GetResponse error on device only

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-11-2008, 09:22 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default HTTP GetResponse error on device only

I've run into a problem - one of my programs sends an HTTP request to a server, which then responds with a text string. The string is a concatenation of several database records, and is often quite long.

One of the program's users - just one - is encountering an error when the program makes the request. Specifically, the error occurs on the line:

Response.Value = Request.GetResponse

The error message is: 'An error occurred on sub_xferdata. An error message cannot be displayed because an optional resource assembly containing it cannot be found.'

This occurs only on the device, not on the desktop (either compiled or running in the IDE).

The device in question is an HTC 8925 / AT&T Tilt. I have copied the program and all associated files to a second HTC 8925, which experienced the same problem.

I'm thinking that there must be something in the string that the server sends back - a null character, or something that doesn't show in the log files (each record sent back to the devices is logged on the server).

Has anyone encountered anything like this with the HTTP library?


Gary

__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6

Last edited by willisgt : 04-11-2008 at 09:27 PM.
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 05:36 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

If you can please install this optional resource: http://www.basic4ppc.com/forum/showp...1&postcount=10
It will now show a more descriptive error message.
Reply With Quote
  #3 (permalink)  
Old 04-14-2008, 01:38 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default

The error message now reads "Could not establish connection to network".

I can certify to you that the program (running on the device) is sending its request to the server, because the server logs the request. The request is correctly formed and contains no errors.

So how could it be that the device can't connect to the network?


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #4 (permalink)  
Old 04-14-2008, 03:56 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Did you try to send this request with the Pocket Internet Explorer?
Maybe there is a proxy settings missing?
Reply With Quote
  #5 (permalink)  
Old 04-14-2008, 05:18 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default

I have not tried to send the request with pocket explorer, as the request is rather lengthy.

What I absolutely do not understand is why only one of the devices is having this problem. All of the others - and there are quite a few - are working perfectly.

The response from the server is dependent on (1) the company the user works for, as this selects the database; (2) the id of the user, as this pulls records specific to that user; and (3) the date, as the server only returns records which are both unexpired and relevant for the next week or so (user selectable from 1 to 30 days).

If I configure another, identical device to the same company and user id, it works properly. The problem (I'm almost 100% sure) lies in the fact that the program requests updates for records it already has in the local (on the device) database. Since those records don't exist on the second device (working properly), it doesn't request updates for them, and the server doesn't return them.

I'll try entering the query into pocket explorer.


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #6 (permalink)  
Old 07-10-2009, 03:06 PM
Junior Member
 
Join Date: Aug 2008
Posts: 21
Default Error message and optional resource Version 6.8

Quote:
Originally Posted by Erel View Post
If you can please install this optional resource: Basic4ppc - Windows Mobile Development - View Single Post - error messages on device
It will now show a more descriptive error message.
I have installed the cab for WM 6 (I have 6.1) but I still get the same error saying I need to install "optional resource" for more descriptive error. I did a soft reset but nothing has changed.

I can run the same program in the desktop IDE without errors, but get this error on the device.

This may be related. If I remove the component and then add the library/dll I get this message. If I remove the object then try to add an object the menu is grayed out. If I remove the component and add it back in there is no opportunity to add an object.

Are the libraries different and version sensitive from 6.5 to 6.8? When I look at the About dialog both the Desktop and Device say 6.8.
Reply With Quote
  #7 (permalink)  
Old 07-10-2009, 03:19 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Which libraries are you asking about?
Reply With Quote
  #8 (permalink)  
Old 07-10-2009, 03:24 PM
Junior Member
 
Join Date: Aug 2008
Posts: 21
Default Error message and optional resource Version 6.8

Quote:
Originally Posted by Erel View Post
Which libraries are you asking about?
Specifically, regarding the program running on the desktop but not the device is formlib.dll, but in general any library. Also, should the error reporting string resource work to give a more descriptive error?
Reply With Quote
  #9 (permalink)  
Old 07-11-2009, 05:23 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Most of the libraries were not changed in V6.80. FormLib was updated to allow changing the alignment of the new custom written labels.
About the resource string, what is your device locale?
Reply With Quote
  #10 (permalink)  
Old 07-11-2009, 05:33 PM
Junior Member
 
Join Date: Aug 2008
Posts: 21
Default Error V6.8 with 6.6 files and libraries, etc

Quote:
Originally Posted by Erel View Post
Most of the libraries were not changed in V6.80. FormLib was updated to allow changing the alignment of the new custom written labels.
About the resource string, what is your device locale?
I am in United States on Verizon, but not sure if that answers your question. Where can I determine my locale?

Probably I am doing something wrong. Everything worked fine on the desktop and device on 6.5. I upgraded to 6.8 and the same programs work fine on desktop but not 6.8. As soon as I try to Open Source from the device Ide I get a error that says it cannot provide more details without additional resources. I installed the string resource file you pointed to but no difference. I have formlib.dll in the same directory as the source file and even tried it in the same location as basic4ppc.exe and still get the error.

If I remove formlib.dll and then save the source file in another location and then add the formlib.dll file and accept it and save the file then run the program it will work at that time it will work on the device (coincidentally the IDE seems to copy the formlib.dll to where I saved the source file). If I shut down the ide on the device it may or may not work the next time I load and try to run it, and it will give the error again.

I was able to get setassociation.sbp to work this way. When I try to run a .sbp file from Total Commander I get an error about untrusted file or cannot find a component or something like that.

The formlib.dll I used I copied from the desktop library folder.

Any ideas?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
error messages on device bdiscount Questions (Windows Mobile) 19 10-16-2009 02:09 PM
Compiling error to device Net 2.0 bparent Questions (Windows Mobile) 2 10-13-2008 06:23 PM
HTTP POST error message miataman Questions (Windows Mobile) 10 07-11-2008 10:28 AM
HTTP POST error Elrick Bug Reports 3 05-24-2008 02:06 PM
HTTP POST on Device - error message TWELVE Questions (Windows Mobile) 6 04-26-2008 09:35 AM


All times are GMT. The time now is 07:05 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0