AutoUpdate Problem

During the auto updation the following error is occured ..What is the problem?

"Error trying to save file: Error downloading "http://xxx/Chandra/Spinsoft/wyserver.wys": The remote server returned an error: (404) Not Found."

It says it in the error: "(404) Not Found". That is, the file couldn't be found on the webserver. Did you upload the updates? Did you configure your servers to deliver *.wys and *.wyu files as "application/octet-stream"?

Try pasting the full url into your browser. Does it download?

See the frequently asked question: "Why do I get a "404 not found error" when downloading wyserver.wys?"

Ya i Pasted the url in browser.....it replies an error that "SPECIFIED URL NOT FOUND"....

Ok, this means either the file isn't on your server (i.e. you haven't uploaded it), or your server is misconfigured. Read the rest of my reply to you:

It says it in the error: "(404) Not Found". That is, the file couldn't be found on the webserver. Did you upload the updates? Did you configure your servers to deliver *.wys and *.wyu files as "application/octet-stream"?

[...]

See the frequently asked question: "Why do I get a "404 not found error" when downloading wyserver.wys?"

For Windows Service-silent update if the update is there means i ll start updating automatically but during that we have to give manually click the button "Close All the Process" ..if i want that also do automatically means what i have to do...

Is that clear for u or i have to give more information

Is that clear for u or i have to give more information

I'm not sure what you're talking about. Are you using the AutomaticUpdater or are you using wyUpdate as a standalone updater? Are you running the updater from a Windows Service or are you updating a Windows Service from your GUI app?

The following is the coding i have wrote in the login form load event

" Dim [module] As ProcessModule = Process.GetCurrentProcess().MainModule Dim pos As Integer = [module].FileName.LastIndexOf("\"c) If pos > 0 Then updaterModulePath = [module].FileName.Substring(0, pos) End If updaterModulePath += " \wyUpdate.exe" "

and then the following coding i wrote in the button click event in login form

"Dim process__1 As Process = Process.Start(updaterModulePath, "/fromservice") process__1.Close()"

in the above coding i have used " \ Fromservice" function . if i use that if there is no updates means it will close silently but if there is an update then a window is opening,in that window we have to click "update" button and after that an another window is opening in that window we have to click "Close All process" button.then only the latest version is updated...

i dont want to give the above said button actions manually...that actions also to be done automatically....for that what i have to add in the above showned coding.

Please help me......

Don't use the "/fromservice" argument. You're making a GUI app. Use one of the following:

Give one Sample coding in vb.net using above said problems.....

Use the AutomaticUpdater control. You have to do almost no coding.

After i use the coding as follows if updates there means i was showing a window in that the window,i have to give "Update " button ...after that another window is coming in that also i have to give " Close All Process" button then only the latest version is updating...i want the above said options also to be done automatically....for that what i have to do....the coding is as follows"

in login form load event:

" Dim [module] As ProcessModule = Process.GetCurrentProcess().MainModule Dim pos As Integer = [module].FileName.LastIndexOf("\"c) If pos > 0 Then updaterModulePath = [module].FileName.Substring(0, pos) End If updaterModulePath += "\wyUpdate.exe""

in button click event:

" Dim process__1 As Process = Process.Start(updaterModulePath, "-quickcheck -justcheck -noerr") If process__1.ExitCode = 2 Then Dim process__2 As Process = Process.Start(updaterModulePath, "-skipinfo") process__2.Close() End If process__1.Close()"

please reply me as soon as possible.

You need to close your application immediately after you start wyUpdate with "-skipinfo".

is there any option of automatic close of the application after started the wyupdate with "-skipinfo"?

if there means how?

You need to do it. Application.Exit() will work.

While i am using the process ,it shows an error while debugging.the coding as follows

"Dim process__1 As Process = Process.Start(updaterModulePath, "-quickcheck -justcheck -noerr") If process__1.ExitCode = 2 Then Dim process__2 As Process = Process.Start(updaterModulePath, "-skipinfo") Application.Exit() process__2.Close() End Ifprocess__1.Close()"

the error coming as " The process exit before the requested information can be determined"

OK, use Close() instead of Application.Exit(). My point was you must close your app after starting wyUpdate to begin the updating process. Or just use the AutomaticUpdater control and it will all be handled for you.