Click here to Skip to main content
15,884,298 members
Articles / Desktop Programming / XAML
Tip/Trick

Exception Has Been Thrown by the Target of an Invocation using Visual Studio and TFS

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
26 Jan 2015CPOL 10.8K  
Exception has been thrown by the target of an invocation using Visual Studio and TFS

Introduction

This kind of issue can also happens on improper check-in by others.

Solution

I had this issue after getting the latest from TFS. It turns out in my case, it happens if other colleagues don't merge or resolve your code properly.

I checked in an XAML and its .cs file, but my colleague did not resolve my changes and checked-in his changes.

In my case, the solution was to copy Itemgroup from history and place it in the latest sln file.

XML
<ItemGroup>
    <EmbeddedResource Include="Pages\Job\AssetJobsList.xaml">
        <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
        <SubType>Designer</SubType>
    </EmbeddedResource>
</ItemGroup>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Australia Australia
I am a, hands-on, Microsoft C# Analyst Programmer using Xamarin, Azure, WPF and MVC as my preferred tools, also as Team Lead and Scrum Master. My experience include in analysis, object oriented design, development and implementation of client, server, web and windows based applications and enterprise mobile apps using latest Microsoft technologies such as MVC, WPF and Xamarin Forms.

I have worked with Microsoft technologies for over 10 years building software for various private sector companies, applying both technical knowledge and managerial expertise.

My preferred technology stack includes C#, Azure, WPF, MVC, Entity Framework, Xamarin and SQL Server and highly prefer working on various design patterns and architectures.

An integral part of my work is to provide my clients with a high standard of understandable technical documentation: I have written few articles listed few page down in this resume, designs, as well as User Guides.

Using Azure for over 1.5 year, migrating application to the cloud, fully managed continuous integration for all environments.

Comments and Discussions

 
-- There are no messages in this forum --