Home > VSTO > ClickOnceAddInDeploymentManager/ System.ArgumentException: Value does not fall within the expected range.

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.vsto

Value 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.


Advertisements
Categories: VSTO
  1. Hari
    December 2, 2010 at 3:57 am

    Thank you sooooo much. You just saved me soo much time.

  2. Alok
    May 19, 2012 at 4:09 am

    Great thank you so much saved me so much time..

  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: