【发布时间】:2014-01-29 09:28:06
【问题描述】:
我有一个 c# 应用程序这次没有发布,我之前发布过没有问题。 这是错误:
ERROR DETAILS
Following errors were detected during this operation.
* [2014-01-29 09:57:28] 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)
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.PerformDeploymentActivation(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.
自从上次我做了小改变:
var existingFCD = fcs.SingleOrDefault(fcd => fcd.FC != null && SWComparer.AreEqual(cea2pFC, fcd.FC));
改为:
var existingFCD = fcs.SingleOrDefault(fcd => fcd.FC != null && SWComparer.AreEqual(cea2pFC, fcd.FC) && rat.Name == cea2pFC.Name);
有人可以帮忙吗?
【问题讨论】:
-
自上次发布以来,您发生了哪些变化?你有一个代码库可以告诉你发生了什么变化吗?
-
我在问题中添加了我的更改
-
错误似乎在 Clickonce 中。如果变化确实是唯一的变化,那么它不应该是原因。也许重新启动你的电脑和 Visual Studio...通过启动安全模式检查是否某些插件导致问题。
-
也许你的路径中有一个&符号? stackoverflow.com/questions/699173/…