Hello,
i'm pretty new to Basic4PPC.. I used the trial version to evaluate if this language is suitable for my project.Now i purchased the full version.In the very first time i tested my program on the device, but later i used only the emulator on windows desktop because it is much more comfortable.I'm using an HP IPAQ 5450 with PocketPC 2003.
Until now everything went ok so far, but now i discovered an issue related to the HTTP lib.I use an HTTP POST to send data to a webserver, which was working fine on the desktop emulator.When i tried it on the device, i'm getting an error message:
If i confirm the message, the programs continues to work, but after exiting the program i get another error message:
After confirming this message Basic4PPC terminates.
Using an network sniffer i can see, that the POST request is send to the server correctly, but the following message box with the error is preventing me from receiving/getting the server's response string.
With desktop version / emulator everything works as expected, no error messages in that at all.
I installed .Net CF 2, because the serial2.dll complaint about the CF 1.
Other request, like GET or TRACE or OPTIONS are working fine, no error message.
I calculate the content.length using StrLength(my POST DATA string) and compared the Content.Length in the HTTP Header with the number of characters in the network trace.I matches the content.length number.
I need some help here to proceed with my project.Somehow i suspect the content.length to be the cause, but don't know what's wrong here.
Furthermore i updated the HTTP Lib with the latest one, but did not make a difference.
kind regards
TWELVE
i'm pretty new to Basic4PPC.. I used the trial version to evaluate if this language is suitable for my project.Now i purchased the full version.In the very first time i tested my program on the device, but later i used only the emulator on windows desktop because it is much more comfortable.I'm using an HP IPAQ 5450 with PocketPC 2003.
Until now everything went ok so far, but now i discovered an issue related to the HTTP lib.I use an HTTP POST to send data to a webserver, which was working fine on the desktop emulator.When i tried it on the device, i'm getting an error message:
Edit:
An error occured on sub blabla.
Line number 1017
Response.Value = Request.GetResponse
Error description:
Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
( unfortunately it's in german language, it means, there is no error message available because an optional resource that contains the error message cannot be found)
Continue ?
If i confirm the message, the programs continues to work, but after exiting the program i get another error message:
Basic4PPC.exe
InvalidOperationException
at
System.Net.HttpWebRequest.set_ContentLength()
at
BufferConnectStream.WritingSucceeds()
at
System.Net.Http.WriteStream .Finalize()
After confirming this message Basic4PPC terminates.
Using an network sniffer i can see, that the POST request is send to the server correctly, but the following message box with the error is preventing me from receiving/getting the server's response string.
With desktop version / emulator everything works as expected, no error messages in that at all.
I installed .Net CF 2, because the serial2.dll complaint about the CF 1.
Other request, like GET or TRACE or OPTIONS are working fine, no error message.
I calculate the content.length using StrLength(my POST DATA string) and compared the Content.Length in the HTTP Header with the number of characters in the network trace.I matches the content.length number.
I need some help here to proceed with my project.Somehow i suspect the content.length to be the cause, but don't know what's wrong here.
Furthermore i updated the HTTP Lib with the latest one, but did not make a difference.
kind regards
TWELVE
Last edited: