Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


HTTP GetResponse error on device only


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-11-2008, 10:22 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
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 10:27 PM.
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 06:36 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

If you can please install this optional resource: error messages on device
It will now show a more descriptive error message.
Reply With Quote
  #3 (permalink)  
Old 04-14-2008, 02:38 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
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, 04:56 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
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, 06:18 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
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
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling error to device Net 2.0 bparent Questions & Help Needed 2 10-13-2008 07:23 PM
HTTP POST error message miataman Questions & Help Needed 10 07-11-2008 11:28 AM
HTTP POST error Elrick Bug Reports 3 05-24-2008 03:06 PM
HTTP POST on Device - error message TWELVE Questions & Help Needed 6 04-26-2008 10:35 AM
error messages on device bdiscount Questions & Help Needed 11 09-24-2007 04:01 PM


All times are GMT. The time now is 01:37 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0