-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 ...檢查是否有一些插件通過啓動安全模式導致問題。 –