คือต้องการให้เครื่องลูกเปิดขึ้นมาแล้วไปเช็ค Version ที่ Server แล้วถ้า Version เก่ากว่าServer ก็ให้มัน Updateมาติดตั้งในเครื่องลูก ต้องทำอย่างไรบ้างอะครับ ผมใช้ C# นะครับ ขอบคุณมากครับ
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.18034
System.Deployment.dll : 4.0.30319.17929 built by: FX45RTMREL
clr.dll : 4.0.30319.18034 built by: FX45RTMGDR
dfdll.dll : 4.0.30319.17929 built by: FX45RTMREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file://10.36.51.150/ClickOnceApp/testClickOnce.application
Deployment Provider url : http://10.36.51.150/ClickOnceApp/testClickOnce.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of \\10.36.51.150\ClickOnceApp\testClickOnce.application resulted in exception. Following failure messages were detected:
+ Downloading http://10.36.51.150/ClickOnceApp/testClickOnce.application did not succeed.
+ The remote server returned an error: (404) Not Found.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [6/6/2556 3:25 PM] : Activation of \\10.36.51.150\ClickOnceApp\testClickOnce.application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [6/6/2556 3:25 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://10.36.51.150/ClickOnceApp/testClickOnce.application did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.FollowDeploymentProviderUri(SubscriptionStore subStore, AssemblyManifest& deployment, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- The remote server returned an error: (404) Not Found.
- Source: System
- Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of \\10.36.51.150\ClickOnceApp\testClickOnce.application resulted in exception. Following failure messages were detected:
+ Downloading http://10.36.51.150/ClickOnceApp/testClickOnce.application did not succeed.
+ The remote server returned an error: (404) Not Found.
อาการที่ผมเข้าใจคือ มันไม่เจอหน้า Page บน Server แบบนี้ครับ จึง DownLoad testClickOnce.application ไม่ได้