-1
我有一个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);
任何人可以帮助?
自上次发布以来发生了哪些变化?你有代码库可以告诉你什么改变了吗? – Gusdor
我在问题 – matarsak
中添加了我的更改错误似乎在Clickonce内。如果变化确实是唯一的变化,那就不应该是原因。 也许重新启动您的电脑和Visual Studio ...检查是否有一些插件通过启动安全模式导致问题。 –