Subscribe: Daniel Vasquez Lopez's Blog
http://blogs.msdn.com/danielvl/rss.aspx
Preview: Daniel Vasquez Lopez's Blog

Daniel Vasquez Lopez's Blog





Last Build Date: Fri, 24 Jul 2015 07:48:27 +0000

 



How to allow self-signed client certificates in IIS

Wed, 25 Jul 2012 10:36:01 +0000

IIS allows you to use client certificates but it may give you hard time if your certificate is wacky (e.g. self-signed). In the client-side, if you have a .NET application that wants to be more permissible on accepting server certificates, you can hook the event ServerCertificateValidationCallback and decide weather or not you want to accept...



How to escape {curly brackets} in URL Rewrite rule

Fri, 29 Jul 2011 10:55:28 +0000

There is no escaping character in an URL Rewrite expression, but here is how you include curly bracket within an URL Rewrite expression. For opening { curly bracket you will always require to use the UrlDecode function to generate the { character from its encoded value %7B, that is: {UrlDecode:%7B} For closing } curly bracket...



Disposing System.Threading.Timer

Fri, 18 Feb 2011 16:14:31 +0000

I guess there are many ways to dispose this a timer, I was looking for an efficient way of doing it and making sure that after the Dispose method was called I had no outstanding timer notifications. In Win32 there is the concept of timer-queue timers, and in that APi set, when a timer is...



NPR in Windows Phone

Fri, 07 Jan 2011 23:07:35 +0000

I just realized that forgot to use “NPR” as keyword for my “Tiny Radio” app; so here is this blog entry My first Windows Phone 7 app is “Tiny Radio” and what it does is to simply tune the closest NPR (National Public Radio) station based on your geographical location. All Windows Phone devices have...



You placed a large amount of data on the Clipboard

Thu, 29 Apr 2010 16:09:00 +0000

I don’t really like this dialog, it is confusing and really hard to read for me. I just simply don’t like it: No further comment.



URL Rewrite 2.0 Performance

Thu, 18 Mar 2010 08:42:18 +0000

Do performance work it is easy when you have the right tools for measuring gains or lost. I will share some thoughts about how to improve performance during rewriting, but please keep in mind that any change you do must be well thought and with performance numbers in hand. If you need advice, please use...



Getting the line number for a Faulting Application Error

Wed, 03 Mar 2010 17:27:51 +0000

It is possible to know the line where an application faulted even if it was not running under debugger or memory dump is not available. It won’t probably tell you why it failed, but it will give you at least a point where to start investigating. After the application failed, look at the Windows Event...



Enable code coverage in Visual Studio

Tue, 16 Feb 2010 15:57:33 +0000

For some reason, every time that I want to enable code coverage for a library that I’m unit testing, I found hard to remember how to enable this fabulous feature. Here are the steps (that work for me): Double click the [Local].testsettings file in the Solutions Items folder in the Solution Explorer window. In the...



Registry values for IIS URL Rewrite

Thu, 07 Jan 2010 15:48:23 +0000

The following registry values can be set for the IIS URL Rewrite module and will affect the global behavior of the module; use them at your own risk 🙂 All these values (DWORD) can be set under the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Rewrite MaxBackReferences – By default 31 (maximum value). Defines the maximum number of back-references that...



System.ComponentModel.Composition Example

Fri, 06 Nov 2009 17:06:00 +0000

I started playing with the .NET Framework 4.0 composition namespace (also known as MEF) and I want to share the most simple example I could write. The program prints out the providerName field, but the actual value is provided by the ExternalProvider class. The CompositionContainer class is able to wire the ExternalProvider.Name property and the...