ClickOnceAddInDeploymentManager/ System.ArgumentException: Value does not fall within the expected range.
In the way of developing an Office 2007 Add-in and deploying that using click once the following error happened on a test machine after couple installing and uninstalling tests:
Name: MYAPP.Outlook2007
From: http://TestMachine/MYAPP.Outlook2007.vstoValue does not fall within the expected range.
************** Exception Text **************
System.ArgumentException: Value does not fall within the expected range.
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.DownloadAddIn(TimeSpan timeout)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
The best solution which worked for us was found on MSDN forum:
….
As a last measure, if you want to get up and running again you can try to delete the ClickOnce cache after you have uninstalled the addin from the Add Remove Programs List.
On Vista, it is located at C:\Users\<user>\AppData\Local\Apps\2.0
On XP, it is located at C:\Documents and Settings\<user>\Local Settings\Apps\2.0.
Please Note: If you do decide to delete you cache you will also loose all other ClickOnce applications/add-ins that you may have installed on your machine.
After deleting the folder you should be able to re-install your add-in and it should work.
Thank you sooooo much. You just saved me soo much time.
Great thank you so much saved me so much time..