[Microsoft.VsSDK.targets] Exception has been thrown by the target of an invocation.


If you are doing some stuff with Visual Studio Extensibility you may come across with this exception and it is actually pretty annoying since it’s hard to find out the reason. In my case the complete description error is:

Microsoft.VsSDK.targets(434,5): error : Exception has been thrown by the target of an invocation.

And the most important information is the one regarding to the line of the targets file (435 in my case). If you want Visual Studio to open and point it directly just look at the Output panel where the error is shown in red and double click it. Most of the times it points to UninstallExtension task:

    <UninstallExtension
        Condition="'$(ExistingDeploymentPath)' != '$(VsixDeploymentPath)' AND '$(ExistingDeploymentPath)' != ''"
        VsixIdentifier="$(VsixID)"
        RootSuffix="$(VSSDKTargetPlatformRegRootSuffix)"
        FailIfNotInstalled="false" />

Tthis task is at line 434 for VS 2012 and 420 for VS2010 (although it may vary).  The explanation is that your VS Addin (the one you are developing) is trying to uninstall the extension that has been probably installed with the MSI installer or VS Extension Manager. So to work around this issue you have two ways. The first one is to uninstall your VS Addin using either the Extension Manager or the MSI package (from the Control Panel) or just tell the VSIX not to deploy the plugin as is shown in the image below:

DeployVSIX

However, keep in mind that the pdb files will not be deployed and therefore you won’t be able to debug (unless you deploy them manually)

Anyway, whichever way you take, I really recommend to uninstall the VSIX in order to prevent MEF or other sort of compositions mismatches.

 

 

 

, ,

  1. #1 by mold removal boca raton on 18/07/2013 - 08:21

    Will there be an RSS feed that we may register for on this website so if
    you have new articles that we all could be notified?

  2. #2 by Jacksonville Divorce Lawyer on 16/09/2013 - 21:14

    I am curious about the RSS feed too? I wanted to know the same information about this site. Please send me the info when you can.

  3. #3 by link on 10/10/2013 - 19:38

    I simply could not depart your website before suggesting that I extremely enjoyed the usual info an individual supply to your guests? Is going to be back ceaselessly to inspect new posts

  4. #4 by chanel Bag Canada on 13/04/2014 - 12:32

    chanel Indonesia
    Everyone loves what you guys are usually up too.
    This sort of clever work and coverage! Keep up the excellent works guys I’ve
    added you guys to my personal blogroll.

  5. #5 by Farm Heroes saga on 15/04/2014 - 18:17

    The Kiwi played 12 matches for the Royals, scoring 181 runs at an average of 36.

    Rather than playing as an omnipotent being, Patapon 3 puts you right on the battlefield
    with your troops. The religion of serfs, based on the idea that objects have magical
    powers”.

  6. #6 by United Kingdom chanel Bags on 17/04/2014 - 02:46

    South Korea chanel Handbags
    Hi there, I enjoy reading through your article post.
    I like to write a little comment to support you.

  7. #7 by Chanel Bag South Korea on 18/04/2014 - 01:40

    chanel baby bag
    I enjoy what you guys are up too. This sort of clever work and exposure!
    Keep up the excellent works guys I’ve added
    you guys to our blogroll.

  8. #8 by Pest Control on 22/04/2014 - 01:26

    I have read so many posts concerning the blogger lovers however this post is genuinely
    a fastidious article, keep it up.

  9. #9 by ninja 1500 on 30/04/2014 - 02:44

    Add potatoes, stir to coat and cook for about 5 minutes.
    This is a helpful feature because it blends evenly and you don’t find yourself needing to stick a spoon in there to
    stir things up half way through. You can check out her latest website
    at The Ninja Blender, where she discusses the
    Ninja 1100 Blender, ninja blender recipes, and much more.

  10. #10 by improvements ideas on 01/05/2014 - 07:06

    Very derscriptive article, Ι likeԁ that
    bit. Will tɦere be а part 2?

  11. #11 by control on 02/05/2014 - 13:47

    Excellent beat ! I would like to apprentice even as you amend your website,
    howw can i subscribe for a weblog website? The account helped me
    a applicable deal. I were a little bit familiar of this your broadcast offered shiny transparent concept

  12. #12 by improvement ideas for the office on 03/05/2014 - 05:58

    I wanted to thank you for this wonderful read!! I certainly loved every little bit of it.
    I have you bookmarked to check out new stuff you post…

  13. #13 by automaty samosprzedajace on 06/05/2014 - 21:14

    magnificent post, very informative. I ponder why the other experts of this sector don’t understand this.

    You should proceed your writing. I’m sure,
    you’ve a great readers’ base already!

  14. #14 by Alex Skorkin on 13/05/2014 - 10:19

    Thanks. I’ve fixed my extension with your help.

  15. #15 by http://hackparaclashofclans.weebly.com on 14/05/2014 - 01:16

    Fantastic blog! Do you have any helpful hints for aspiring writers?
    I’m planning to start my own website soon but I’m a little lost on everything.
    Would you advise starting with a free platform like WordPress or go for a paid option?

    There are so many options out there that I’m totally overwhelmed
    .. Any ideas? Appreciate it!

  16. #16 by carpet cleaner on 16/05/2014 - 09:05

    Helolo there, You have done an exxcellent job. I will certainly diyg it and
    personally suggest to my friends. I’m confident they will be bnefited from this site.

  17. #17 by renovate on 24/05/2014 - 10:05

    For hottest news you have to visit ingernet
    and on world-wide-web I found this web page as a best web pagbe forr latest
    updates.

  18. #18 by Tummy Stuffers on 24/05/2014 - 10:13

    The Hello Kitty key ring has to be a sure winner here.
    If the marrow bones get grungy after your shih tzu eats out the
    treat in the middle, put them in the dishwasher.
    Gone are the days when people used to hesitate in talking about sex.

  19. #19 by rolex daytona leopard replica on 16/06/2014 - 03:46

    I have been exploring for a bit for any high quality articles or blog posts in this sort of area .
    Exploring in Yahoo I finally stumbled upon this website. Studying this info So
    i am glad to express that I have an incredibly just right uncanny feeling
    I found out just what I needed. I such a lot indubitably will make sure to don?t fail
    to remember this website and give it a look regularly.

  20. #20 by http://www.onedatefoc.us/index.php?m=member_blog&p=view&id=47030&sid=70989 on 24/06/2014 - 00:47

    What’s Taking place i’m new to this, I stumbled upon this
    I’ve found It positively useful and it has helped me out loads.
    I hope to contribute & help other users like its aided me.
    Great job.

  21. #21 by forex citibank multi currency account on 12/07/2014 - 07:34

    The major error made by most new traders is – they buy a cheap
    Forex robot and think there going to make a huge income with no
    effort. In stocks, a single share will probably cost you a great deal as compared with that
    amount of money. The origin of the foreign exchange market, (Forex,
    FX, or currency market) can be traced back centuries.

(will not be published)


Get Adobe Flash player