DispatcherUnhandledException catches children window Exception before try catch (ShowDialog)

Problem Application.DispatcherUnhandledException is a solution provided by the .NET Framework to manage any Unmanaged Exception bubbling up to the root of your application (App.AppStartup). Whilst using this solution I faced a problem when opening new windows from the Dispatcher of the UI Thread. When performing a try/catch around a Window.ShowDialog(), the DispatcherUnhandledException will be invoked…

0

Nested/Recursive Regex and .NET Balancing Groups – Detect a function with a Regex

Problem Overview Regex is a powerful tool allowing us to extract content from a string based on a Regular Expression. When you need to identify a string that contains nested elements, it might be more difficult to understand how to create a Regex solving this specific problem. Let’s say you want to extract a specific…

0

Insert a WebBrowser in a Word Document! Or how to insert a WPF/ Winform Custom UserControl in a Word Document

 This post provides an example on how to insert custom control inside a Word Document using VSTO. You might for example insert controls as button or a whole user interface inside your document. These controls might either be Winform or WPF control. VSTO allows developers to insert Winform controls inside their document. Create the project…

0

MSCOMCTL.OCX won’t register

I have been facing an issue with the Visual Basic component MSCOMCTL.OCX which I was not able to register (Windows 7 – 64bits). I found multiple answers on the internet as: Move the object in a different folder C:\Windows\system C:\Windows\system32 C:\Windows\SysWOW64 Update the registry Reinstall VB6… While trying to use the classic regsvr32 and modifying…

0

Netsh wlan start hostednetwork, The hosted network couldn’t be started.

While trying to share my wifi connection, the error “The hosted network couldn’t be started. The group or resource is not in the correct state to perform the requested operation.” happened and I wanted to share how to solve this issue. The problem comes from the adapter that can be in “sleep mode”. As explained…

78

SQL server 2012 Install/Update Failure – 84B20001

When trying to update SQL Server 2012 with the patch KB2716442 (Windows 8) I was not able to solve the issue 84B20001. Going on http://support.microsoft.com/kb/2716442 I was not able to solve the issue neither so I wanted to share how I solved this issue.     To solve the issue type “Regedit” in your start menu. UPDATE…

23

TypeScript project in Visual Studio 2012

Introduction Reading some forums, I have seen some people having troubles creating a new TypeScript project in Visual Studio 2012. This is a quick tutorial to demonstrate the creation of a default project.   Hello TypeScript Go to the Microsoft Download page and install the Visual Studio 2012 plugin. Some people do have some trouble…

7

Bulk Copy – Use BCP from SQL to concat databases

Introduction This post’s goal is to introduce you to Bulk Copy. We’ll create a SQL query which is going to concatenate several attached databases and extract the data to an output csv file. The first goal is to demonstrate how to use Bulk Copy as well as solving an issue that I sometime encountered for…

1

Activate Windows 8 RTM Enterprise without slui (DNS name does not exist)

If like me you have installed Windows 8 Enterprise on your machine, you have certainly noticed that you cannot activate Windows because of a DNS error (DNS name does not exist.) if you do not have a KMS server. The error code is 0x8007232B. To activate Windows Enterprise we will need to change the key…

31

Debugging Node.JS

Node.Js is a simple technology to host a webserver. I wanted to share the steps to enable debugging on a Windows computer.To debug  we will use a very powerful tool : node-inspector. Node inspector is a web-hosted debugger which communicates with your application thanks to WebSocket and will allow you to create breakpoints, update your…

1