Android Question Httpjopb upload error

grafsoft

Well-Known Member
Licensed User
Longtime User
Hi,.

I have moved to a new server. The program uploads without problems on the opd one, but not on the new one.

I did not change anything but the name of the host. The old server is Windows 2003, the new one Windows 2012 R2.

Any ideas?

My code looks like this:

B4X:
   inp= File.OpenInput(Main.outdir,fname)
  req.InitializePost(Main.hostname & "uploadform.asp", inp, size)
   HttpClient1.Execute(req, 1)
...

Sub HttpClient1_ResponseError (Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int)
   
   Log("Error " & Reason)
   Log (Response)
   startit
End Sub

These are my logs:

startit 9127a986-5be0-4815-aea7-4af70ec6eb73_s.jpg
*** Here I start the upload of a file. The file exists.
*** This is responseError
Error Internal Server Error
anywheresoftware.b4a.http.HttpClientWrapper$HttpResponeWrapper@4250cc70
startit db.txt
Error Internal Server Error
anywheresoftware.b4a.http.HttpClientWrapper$HttpResponeWrapper@42515118

Sometimes I also get this error:
startit 10491c14-f367-4412-81b7-569d26b204a8_s.jpg
libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
 

Reviewnow

Active Member
Licensed User
Longtime User
You have to make sure your iis permission are correctly setup to the output folder, make sure that the iis user has write permissions once that is validated try again
if this is your personal server asp is not enabled by default on windows server 2012
http://www.iis.net/learn/applicatio...8/classic-asp-not-installed-by-default-on-iis

you could also try converting your classic asp solution to asp.net at some point you will get better performance
 
Upvote 0

grafsoft

Well-Known Member
Licensed User
Longtime User
Thank you.

You were right, I had to set the folder to read/write und to give the IUSR read/write permissions. Should have thought of that myself.

Thasnks a lot, you might have saved me some hours!
 
Upvote 0
Top