2012-10-04 39 views
8

Tôi có ứng dụng được phân phối qua ClickOnce. Tôi cập nhật nhiều lần và chưa bao giờ có một vấn đề. Kể từ khi cập nhật mới nhất (mà là nhỏ: một nhãn), khi tôi chạy ứng dụng của tôi từ một bài đăng, nhấp một lần bắt đầu và nhắc tôi một lỗi: ứng dụng không thể khởi độngClickOnce: Giá trị không nằm trong phạm vi dự kiến ​​

Khi tôi nhìn vào các bản ghi tôi nhận được thông báo sau:

OPERATION PROGRESS STATUS 
* [04/10/2012 13:24:33] : Activation of C:\Users\xxxxxxxxx.appref-ms| has started. 
* [04/10/2012 13:24:33] : Performing necessary update check as specified by the deployment. 

ERROR DETAILS 
Following errors were detected during this operation. 
* [04/10/2012 13:24:33] System.ArgumentException 
- Value does not fall within the expected range. 
- Source: System.Deployment 
- Stack trace: 
at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType,  String applicationFullName, Int32 manifestPathsCount, String[]  manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION   processInformation) 
at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId    appId, String activationParameter, Boolean useActivationParameter) 
at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId   appId, String activationParameter, Boolean useActivationParameter) 
at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId  appId,  AssemblyManifest appManifest, String activationParameter, Boolean   useActivationParameter) 
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) 
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) 

Tôi đã đi theo chiều dài và bề rộng của lưới, nhưng tôi không tìm thấy giải pháp cho vấn đề của mình.

Tôi thậm chí không hiểu vấn đề này là gì.

tôi đã cố gắng giải pháp này nhưng không thành công: ClickOnce error: Value does not fall within the expected range

Và cái này quá nhưng không thành công: "Value Does not fall in the expected range" ClickOnce Deployment

Thanks for the help!

Trả lời

3

Nếu bạn đang cố gắng chạy nhấp chuột trên chia sẻ UNC, nó có thể không hoạt động. Tôi đã nhận được kết quả tương tự như của bạn ở trên, nhưng tôi chỉ cố gắng triển khai để C: \ thay vì chia sẻ của chúng tôi, và nó chạy tốt. Ngoài ra, hãy kiểm tra để đảm bảo rằng bạn không có bất kỳ ký hiệu nào của & trong đường dẫn triển khai của bạn vì điều này dường như đã làm hỏng nó.

Ngoài ra, hãy kiểm tra danh sách những điều cần kiểm tra trên bài đăng này. "Value Does not fall in the expected range" ClickOnce Deployment

+0

khác nhau stack trace vấn đề như vậy hoàn toàn khác nhau – antak

1

Đây là một chút chậm trễ, nhưng tôi tìm thấy giải pháp duy nhất để giải quyết vấn đề của tôi là thế này:

99.9% of the time, "value does not fall within expected range" means you have circular references, or references to two different versions of the same assembly.

Từ đây: https://social.msdn.microsoft.com/Forums/windows/en-US/e6c0a0ca-fbf0-47e2-8681-bc03471d09f6/value-does-not-fall-within-the-expected-range?forum=winformssetup

Các vấn đề liên quan