Daniel Vasquez Lopez's Blog
-
How to allow self-signed client certificates in IIS
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 the server certificate; the callback provides you the certificate, the chain and the SslPolicyErrors (as flags) found during validation.
-
How to escape {curly brackets} in URL Rewrite rule
There is no escaping character in an URL Rewrite expression, but here is how you include curly bracket within an URL Rewrite expression.
-
URL Rewrite 2.0 Performance
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 the IIS forums: http://forums.iis.net/1152.aspx
-
Registry values for IIS URL Rewrite
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 :)
-
Faster proxy detection for HttpWebRequest
Do a web request using System.Net classes, HttpWebRequest or WebClient. For example:
-
How to consume ETW events from C#
In my previous post I explained how to collect ETW events from URL Rewrite (or any other IIS provider) and then display those structured events in the Event Viewer. Now I want to show you how to collect ETW events using C#.
-
How to display URL Rewrite ETW Events in the Event Viewer
IIS Failed Request Tracing is a powerful way to troubleshoot Web Requests, it provides an easy way to track each execution step for one specific request. URL Rewrite Module provides several events that can be tracked using Failed Request Tracing, here is an article that explains how: http://learn.iis.net/page.aspx/467/using-failed-request-tracing-to-trace-rewrite-rules/
-
Write your own UI Rewrite Template Extension!
The GoLive release of URL Rewrite Module is now available and has a lot of improvement thanks to the IIS Community feedback (and tons of internal brainstorm meetings!). A new feature is the ability to create Rewrite Rules by using Rewrite Templates, Rewrite Templates are UI extensions that help to simplify the creation of rules.
-
URL Rewrite for IIS 7.0 / Regular Expressions and Wildcards
Last week we shipped the first preview of URL Rewrite Module for IIS 7.0. If you are not familiar with URL Rewriting engines, please check out the walkthroughs: http://learn.iis.net/page.aspx/460/using-url-rewrite-module/.