Errors downloading update filesLocked

Hello,I am trying wyBuild and all looks great but the wyUpdate.exe fails to download wyserver.wys (I actually renamed this to wyserver.zip). The error indicated is "The underlying connection was closed: The connection was closed unexpectedly"

I can download the file using a browser and having read in other posts that you are using HTTPWebRequest I also tried downloading the file via code and the HTTPWebRequest object and it succeeded, so I don't know why it fails from wyUpdate.exe

Hope you can help as it's critical in my decision about buying wyBuild.

Thanks

I am trying wyBuild and all looks great but the wyUpdate.exe fails to download wyserver.wys (I actually renamed this to wyserver.zip). The error indicated is "The underlying connection was closed: The connection was closed unexpectedly"

Well, you can't just change the filename on the server and expect wyUpdate to reference it. You'll have to change the filename in "File -> Properties -> Update & server files". Then you have to rebuild wyUpdate by clicking "Build wyUpdate" so that wyUpdate will know about the new file location.

But back to the original question...

The error indicated is "The underlying connection was closed: The connection was closed unexpectedly"

When wyUpdate gives you the error it should also list the site that failed. Copy that download site and paste it into a browser (don't type it manually) -- does it succeed?

If it doesn't succeed in your browser then there's a configuration error with your server, or the download site is subtly wrong (maybe you capitalized one character that's no capitalized on your server, etc.).

If it does succeed in your browser then something is going wrong with wyUpdate. Are you using the latest version of wyUpdate, 2.6.14 (RIght click wyUpdate.exe, click Properties, then click the Details tab)? Is your computer or your local network using a proxy?

If you're using the latest wyUpdate and it still fails try this copy of wyUpdate: [removed]. Does it work?

Hello,indeed I did not just change the file name to wyserver.zip. I did all the modifications required in the wybuild project and built wyupdate.exe and the client file accordingly.

I did copy the url that failed in the wyupdate dialog in a browser and it does work.

I don't use any proxy or anything, and proof that everything works is that I used HTTPWebRequest in a sample app I created and I can download the file without any problems.

I am using the latest version: 2.6.14.0

I tried the version you indicated too but same result.

Here is the full error description:

Error trying to save file: Error downloading "http://www.abakonsys.com/products/stockcontrol10/updates/wyserver.zip": The underlying connection was closed: The connection was closed unexpectedly.

If you copy the url in a browser you'll see that it works fine.

Thanks

Thanks for posting the link. It appears that your server hangs on "non-standard" user agents. Replace your version of wyUpdate with the one included in this zip file: [removed].

Does it work for you?

Yes it works now... thanks for solving the issue, great support.

How do I update wyBuild to generate this new version?

, edited

Ok, we'll include this fix in the next version of wyUpdate.

How do I update wyBuild to generate this new version?

When we release wyBuild 2.6.15 it will be included. In the meantime when you click "Build wyUpdate" use the generated "client.wyc" file but use the "wyUpdate.exe" file you downloaded from this forum.

ok.. in the mean time I tried replacing InstantUpdate.exe in the wyBuild folder with the version you indicated, looks to be the file being copied to become wyUpdate.exe... am I correct?

It's better if you don't touch the InstantUpdate.exe file in the wyBuild folder. Just use the wyUpdate.exe file you downloaded from the "wyUpdate-test2.zip" file. Does this make sense?

Yep, no problem... thanks. 🙂

i am getting the error Could not find file wyserver.wys while running the application. However i am not getting the error while running from project.