bright, fresh software
Downloads  |  Buy

Automatic Updater with Access

Re: Automatic Updater with Access

Postby Arun » July 26th, 2012, 6:44 am

Pts Tools Update information
auBackend_BeforeChecking
auBackend_CheckingFailed. Reason
Title: Unable to check for updates, the server file failed to load.
Message: Error trying to save file: Error downloading "https://theshare.thomsonreuters.com/sites/trta/sites/pts/Outsourcing/DMT/sotware_updates/ptstools/updates/wyServer.wys": The remote server returned an error: (401) Unauthorized.

This is the error iam getting when i run windows service. Iam using Target framework is .Net Framework2.0
Arun
 
Posts: 39
Joined: June 25th, 2012, 12:01 pm

Re: Automatic Updater with Access

Postby Wyatt » July 26th, 2012, 10:53 am

Again, this is a problem with your network. wyUpdate is telling you exactly what's wrong. You don't have access to the file. Copy & paste the file URL from that error into your browser, and your browser will give you the exact same error.

Configure your server correctly so that you *do* have access to the file.
User avatar
Wyatt
Site Admin
 
Posts: 2559
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Automatic Updater with Access

Postby Arun » July 26th, 2012, 12:25 pm

Thanks for your reply.. I tried with changing folder permission level to full control.Then also have same issue.I really dont understant where it is blocking.
Arun
 
Posts: 39
Joined: June 25th, 2012, 12:01 pm

Re: Automatic Updater with Access

Postby Wyatt » July 26th, 2012, 12:26 pm

This is a problem with your web server. Ask whoever set up the server.
User avatar
Wyatt
Site Admin
 
Posts: 2559
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Automatic Updater with Access

Postby Arun » July 27th, 2012, 9:07 am

I have copied my server path where it is using to download the updates and pasted the same path in browser then i am able download the update file and if i run wyUpdate.exe by double click then also i am able to download the updates. So using wybuild source code can we change those permissions?
Arun
 
Posts: 39
Joined: June 25th, 2012, 12:01 pm

Re: Automatic Updater with Access

Postby Wyatt » July 27th, 2012, 12:11 pm

Ok, it sounds like your HTTP servers are doing something screwy like checking the local Windows username. Or perhaps you have a proxy configured on the system for your logged in users, but you forgot to set the proxy for the "LocalSystem" user account.

You can always manually pass the proxy to wyUpdate.
User avatar
Wyatt
Site Admin
 
Posts: 2559
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Re: Automatic Updater with Access

Postby Arun » July 27th, 2012, 12:22 pm

Can i use below command in C# code.If yes where can i use it ?could you please tell me.

automaticUpdater.wyUpdateCommandline = "-proxy:\"http://proxyserver:80/\"";
Arun
 
Posts: 39
Joined: June 25th, 2012, 12:01 pm

Re: Automatic Updater with Access

Postby Wyatt » July 27th, 2012, 6:30 pm

I'm not sure I understand. It's exactly as easy as it looks. Put the code in your Windows service with all the other AutomaticUpdater code. Also, change the proxy server to whatever you use at your company.

For example, if you're using our WindowsService example using the AutomaticUpdaterBackend, then simply change that code snippet to this:


Code: Select all
auBackend.wyUpdateCommandline = "-proxy:\"http://proxyserver:80/\"";


And put that in the OnStart() method.
User avatar
Wyatt
Site Admin
 
Posts: 2559
Joined: July 11th, 2007, 10:30 pm
Location: New Hampshire

Previous

Return to wyBuild, wyUpdate, & AutomaticUpdater Support