Getting error while uploading file on server

Apr 16, 2015 at 7:39 AM
   I have downloaded hssinterlink with testclient project.It is working fine for localhost but when i changed resource uri in filequery class "http://MyIp:Port/FileUpload.ashx" then i m getting error "Upload completed with error". Can u plz let me know what i mm doing wrong.Plz help me out asap..
Apr 16, 2015 at 12:25 PM
The URI that you specify is based on your web.config settings. If you modify the value on the client it has to match. Check out the documentation, and about 1/2 way we discuss the web config settings and their impact. Also note the settings are located in different places within the web config based on if you're running the VS Dev Web Server versus IIS 7.X. We also explain those differences.

If you still have issues, let us know...
Apr 16, 2015 at 1:25 PM
Edited Apr 17, 2015 at 5:58 AM
Hi , hyspdrt
       Thank u so much for your quick response.I am still getting isue .My url on which i want to upload files is "http://xxxx:xx/Interlink/Uploads".I have just change the uri in resolve url method of FileQuery.cs "http://localhost:1234/FileUpload.ashx" to "http://xxxx:xx/FileUpload.ashx". What I have to change in web.config or any other class.Plz help me out asap
Thanks alot
Apr 16, 2015 at 6:28 PM
you shouldn't have to modify any code. The host portion of the URI is relative to your app. so regardless of your host value (localhost or it's relative; meaning it can be in the rooted - '/fileupload' or nested - '/myapp/fileupload'
Apr 17, 2015 at 8:02 AM
hi, hyspdrt
                  Thanks for your response.I have changed uri from localhost to my uri but i m still getting same error.Can u plz help me out  how can i upload files on my server.plz help me asap

Apr 17, 2015 at 8:18 AM
To confirm a few things
  1. are you running a 100% Silverlight app, or just embedding Interlink within a traditional html app?
  2. you shouldn't have to modify URLs or PATHs, so I'm not sure what you're trying to accomplish by doing so
  3. some devs have had issues going from DEV to IIS, since in DEV you're typically rooted (http://localhost:port/), and then when to IIS it's nested (http://url:port/app/), but Interlink usually is smart enough to handle that in most cases
  4. are you using the latest version/source?
  5. can you provide a copy of your web config (removing anything private)
Apr 17, 2015 at 10:14 AM
     Thanks.I have just downloaded project and I run this app testclient.web as startup project in silverlight enviornment.In this project i m able to upload files on http//localhost:port/interlinks/uploads folder  but now what i want to do is to upload files on http//myurl:myport/interlinks/uploads folder.Can i do this by using this project plz help me out..

Apr 17, 2015 at 10:20 AM
you shouldn't have to change anything to do what your asking...

Also, the DEV Folder is for our internal dev purposes; please use the v3 branch, as that is the latest/tested code and is aligned with the published/released installer.
Apr 17, 2015 at 1:26 PM

Thanks for the quick response, I am bit confused so that's why I would like to re-elaborate our scenario and problems which we are facing .
  1. We have a public server there we want to upload files in a specific directory as I defined previously. Ex : (http://Public_IP:8084/abc/bcd/).
  2. We downloaded project to fulfil our requirement. Please find below URL from where we had downloaded.
  3. Without doing any changes into downloaded code, I replaced only localhost with public IP Address and port 8084 with default defined port. After doing this I am unable to upload any files into our public server because it returns error "upload completed with error"
  4. As per your suggestion when I used hss.interlink.3.0 code I am unable to run project because I am getting errors "projects are unavailable".
Now please let me know what I am doing wrong and how will I accomplish this task. If there 's any query then please let me know.

Thanks & Regards
Apr 18, 2015 at 11:50 AM
If you just want to control the location where files are saved, that's dictated within your upload handler that receives the files. The base class provides you the file name, and you control what folder you want to save the files to. The URL has nothing to do with where you save the files.