Blog Archives

TargetInvocationException – How to break on the correct line


In many modern applications, you use Task or Threads to optimize your code. But when an exception occurred, you receive a generic exception like System.Reflection.TargetInvocationException: ‘Exception has been thrown by the target of an invocation.’ To avoid that in Visual

Posted in Tips and others, Thread, MVVM

[Tip] Windows 10 – Display Menu to the Left or to the Right of your hand.


If like me, your PC is configured to display Visual Studio menu to the left of my hand. Of course, your are using Visual Studio with a mouse and not with your hand. So, you want to change that. You

Posted in Tips and others, Visual Studio

Quick tip about SqlCmd.exe 13


Some days ago, I’ve installed Visual Studio 2017 and today, I’ve try to execute a simple SQL query with SQLCMD.EXE. What’s the problem ? No really one… except that I’ve received an “ODBC Driver 13 for SQL Server” error and “Login

Posted in SQL Server, Tips and others

Tip to optimize SQL Queries


Identification of the problem. Some days ago, a customer call me to try to solve a performance problem into an existing application connected to SQL Server. Using SQL Server Profile, we found some queries with unexpected times. For example, to

Posted in General, SQL Server, SqlDatabaseCommand, Tips and others

Configure a Visual Studio Online (VSO) Build Agent


When using Visual Studio Online (VSO) in your team or for your personal projects, it is very useful to integrate a compilation and a continuous deployment process. With MSDN subscriptions, you have about 240 minutes of hosted build. After this time, it’s

Posted in General, Team Foundation Server, Tips and others, Visual Studio

How to migrate EntityFramework 5 to EntityFramework 6 with Visual Studio 2015


If you have developed your application with EntityFramework 4 or 5, using the graphical model designer EDMX… May be you received a compilation error after some updates of this EDMX. Why ? Because the model is different with EF6. See this Microsoft

Posted in Tips and others, Visual Studio

How to transfert a file from Host to a Hyper-V Virtual Machine?


Each time I need to copy a file from my PC to a Virtual Machine hosted by Hyper-V, I don’t remember the best way. If your VM runs a Windows 8, you can activate “Enhanced session” option and use Copy

Posted in Formation, Hyper-V, Tips and others
Follow me
   RSS Feed    Twitter    Linked In

Write you email address to subscribe at this blog and to receive new posts by mail.

Join 611 other followers

Who I am?