Author Archives: Gaston

Unknown's avatar

About Gaston

MCT, MCSD, MCDBA, MCSE, MS Specialist

How to describe object state

Let’s say that we’re developing an application to manage invoices. Invoices will be created, modified, sent, (hopefully) paid or rejected, … Depending on the stage that an invoice is in, we can perform different actions on it. For example: it … Continue reading

Posted in Analysis, Codeproject, Development, OOAD, UML | Tagged , | 1 Comment

Let’s fix Windows Live Writer on Win10

The problem I installed Windows 10 on my computer, and then to make blogging easy I wanted to install Windows Live Writer. So I went to https://www.microsoft.com/en-us/download/details.aspx?id=8621 to download it and well enough, I received the setup file wlsetup-web.exe in … Continue reading

Posted in Computers and Internet | Tagged , , | 1 Comment

How to obtain the value of the selected radio button

Here is a simple way to get the value for the selected button in an html form, using jquery: <form> <input type=”radio” name=”status” value=”1″ /> Free <br /> <input type=”radio” name=”status” value=”2″ selected /> Reserved <br /> <input type=”radio” name=”status” value=”3″ /> Not available <br /> … Continue reading

Posted in Development | Tagged , , | 4 Comments

Could not load file or assembly ‘System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’

When creating a new MVC5 application using VS2013 I got the following error: Could not load file or assembly ‘System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception … Continue reading

Posted in .Net, Development, MVC, MVC5, Web API | 2 Comments

“Object reference not set to an instance of an object” when building my cloud project

In my Azure project I have a worker role and a wcf role. When compiling it failed (with no obvious reason) with this message in the output window: Error: Object reference not set to an instance of an object There … Continue reading

Posted in .Net, Azure, Development | Leave a comment

Managing IIS Express settings

Problem statement For ease of use I had put a web application using IIS Express at port 80. This implies that later on using IIS (the real one) didn’t work anymore because it uses port 80 by default too. So … Continue reading

Posted in Geen categorie | Tagged , | Leave a comment

XslLoadException: The type or namespace name ‘SecurityRulesAttribute’ does not exist in the namespace ‘System.Security’ (are you missing an assembly reference?)

While porting a project from .Net 3.5 to .Net 4 we got this weird error. The error occurs when loading an XSLT in memory. Here is the failing piece of code (simplified): private static XslCompiledTransform ReadXslt(string fname) { XslCompiledTransform xsl … Continue reading

Posted in .Net, Development | Tagged , , | 1 Comment

Advanced logging in IIS 7.5

In the standard installation of IIS 7.5 it is not possible to log the incoming requests, not the outgoing responses. The reason for this is probably that Microsoft wants to keep the attack surface as small as possible. But I … Continue reading

Posted in Computers and Internet, Development, IIS, Logging | Tagged , , | 2 Comments

Using a TreeView in WPF

Using a tree view in Windows Forms is straightforward, but in WPF the control has undergone a lot of modifications. In this blog I’ll describe how to do some tasks that seem to be easy enough, and describe some caveats. … Continue reading

Posted in .Net, Development | Tagged , , | Leave a comment

Rediscovered the Debug attributes

There are 2 attributes that can easily be applied to your classes / methods to modify the behavior at debugging time. The attributes don’t change the runtime behavior of your code. [DebuggerDisplay] This attribute defines how you’ll see a type … Continue reading

Posted in .Net, Debugging, Development | Tagged , | Leave a comment