Android Question Httpjopb upload error

Discussion in 'Android Questions' started by grafsoft, Mar 3, 2015.

  1. grafsoft

    grafsoft Well-Known Member Licensed 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:

    Code:
    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)
     
  2. Reviewnow

    Reviewnow Active Member Licensed 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
     
    grafsoft likes this.
  3. grafsoft

    grafsoft Well-Known Member Licensed 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!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice