我有一个这次没有发布的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);
任何人都可以帮忙吗?
答案 0 :(得分:0)
从控制面板中删除应用程序并返回到我以前的版本后,我终于能够解决问题了!