編集:
コメントで@Julianが提供した投稿の回答を読んだ後、この質問を編集しました。rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache
アプリケーションが更新をチェックし、ダウンロードする更新があることを確認した場合、どのように実行すればよいですか?
元の投稿:
ユーザーが経験したバグについて事後調査をしようとしています。
アプリケーションは、ユーザーのコンピューターにインストールされる wpf アプリケーションです。アプリケーションの通常の使用法は、デスクトップ上のアイコンをクリックして更新を確認し、アプリケーションの最新バージョンが存在する場合はダウンロードすることです。
昨日、私が展開したところ、正しく動作するアプリケーションがインストールされました。少し表面的なテキスト編集を行い、新しいバージョンを公開しました。新しいバージョンが公開され、新しいバージョンがダウンロードされたことを示すデスクトップ アイコンです。
今日、私はアプリに取り組んでいましたが、私が行った唯一の大きな変更は、 を使用してアプリケーションに追加NLog
して実装することでした。私はローカルで公開しましたが、うまくいきました。UAT に公開し、デスクトップからアプリを実行するように依頼すると、次のエラーが発生しました。もう一度試すように依頼しましたが、同じエラーが発生しました。更新をスキップするように依頼したところ、同じエラーが発生しました。NLog.Config
NuGet
[Pasted Bellow To Keep this more readable]
インターネット上のほとんどの人を見回すと、インストールを消去して再試行することが提案されました。そのため、デスクトップ アイコンとアプリ フォルダーをクリアしAppData/...
、公開された場所から再度インストールを試みました。出来た。別の簡単な編集を行ったところ、アプリケーションは更新を認識して最新バージョンをインストールしました。
何度も何度も噛まれるので、なぜバグが発生するのかわからないのは好きではありません。また、UAT では、椅子を動かしてアンインストールと再インストールを行うことができるため、これはそれほど問題ではありませんが、これが展開されると、そのような贅沢はありません。更新をスキップしてもアプリケーションが壊れる場合は、アプリケーションには多くの「信頼」があります。
要約するNLog
と、バグの原因はアプリケーションへの追加でしたか? もしそうなら、アプリケーションへの追加はどのように行えばよいNLog
でしょうか? また、「いいえ、NLog は問題ではありませんでした。他の場所でバグの原因を探してください。」も受け入れます。
おまけ:将来、これは再び起こりましたが、今回は私の一般的なユーザーベースに. これから回復するためにあなたは何をしますか?注: ユーザーのコンピューターでのアクセス/リモートはオプションではありません。
PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.8.3761.0 built by: NET48REL1
clr.dll : 4.8.3928.0 built by: NET48REL1
dfdll.dll : 4.8.3761.0 built by: NET48REL1
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url : file:///C:/Users/[path]/Tenant%20Analytics%20Tool%20-%201%20.appref-ms%7C
Deployment Provider url : file://catdtfnp02/Data$/Data_TDT/[another_path]/Tenant%20Tool%20Analytics%20Module.application
Application url : file://catdtfnp02/Data$/Data_TDT/[another_path]/Application%20Files/Tenant%20Tool%20Analytics%20Module_1_0_0_65/Tenant%20Tool%20Analytics%20Module.exe.manifest
IDENTITIES
Application Identity : Tenant Tool Analytics Module.exe, Version=1.0.0.65, Culture=neutral, PublicKeyToken=c48350b63a3c5924, processorArchitecture=x86, type=win32
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\[user name]\Desktop\Tenant Analytics Tool - 1 .appref-ms| resulted in exception. Following failure messages were detected:
+ Value does not fall within the expected range.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [11/12/2019 3:48:58 PM] : Activation of C:\Users\[user name]\Desktop\Tenant Analytics Tool - 1 .appref-ms| has started.
* [11/12/2019 3:48:58 PM] : Performing necessary update check as specified by the deployment.
* [11/12/2019 3:48:58 PM] : Consuming new update.
* [11/12/2019 3:49:05 PM] : Installation of the application has started.
* [11/12/2019 3:49:05 PM] : Processing of application manifest has successfully completed.
* [11/12/2019 3:49:05 PM] : Found compatible runtime version 4.0.30319.
* [11/12/2019 3:49:05 PM] : Request of trust and detection of platform is complete.
ERROR DETAILS
Following errors were detected during this operation.
* [11/12/2019 3:49:05 PM] System.ArgumentException
- Value does not fall within the expected range.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.LockApplicationPath(UInt32 Flags, IDefinitionAppId ApId, IntPtr& Cookie)
at System.Deployment.Application.ComponentStore.LockApplicationPath(DefinitionAppId definitionAppId)
at System.Deployment.Application.SubscriptionStore.LockApplicationPath(DefinitionAppId definitionAppId)
at System.Deployment.Application.FileDownloader.PatchFiles(SubscriptionState subState)
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.ConsumeUpdatedDeployment(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.