Si al ejecutar un Web Test en Visual Studio 2005 recibes un error HTTP 411 del servidor web, es probable que encuentres solución con esta recomendación.
Problema
Al grabar un Web Test con Fiddler, a los requests que no tiene una colección de valores en "Form Post Parameters" le asgina la propiedad Transport.Method = POST.
Cuando se ejecuta el web test el Request generado es el siguiente
POST /localhost/algunallamada.aspx
Content-Type : application/x-www-form-urlencoded
Pragma : no-cache
User-Agent : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Accept : */*
Accept-Language : en-US
Host : walzer3
Cookie : ASP.NET_SessionId=iclqf455ckclxr45fsfeq4yt
Accept-Encoding : gzip
Aca podemos notar que se emite el Content-Length. IIS entonces al no recibir datos ni tener espeficado explícitamente su tamaño (Content-Length : 0), devuelve un error HTTP 411:
Headers:
HTTP/1.1 411 Length Required
Connection : close
Cache-Control : private
Content-Length : 24
Content-Type : text/html
Date : Mon, 24 Sep 2007 20:42:53 GMT
Body:
<h1>Length Required</h1>
Solución
Cambiar la propiedad Transport.Method = GET