Tuesday, August 21, 2007

Fiddler2 - Connection to localhost failed

I am currently doing so research and development that involves working with the MS ASP.NET AJAX 1.0 Extensions and the Ajax Control Toolkit. Anyhow, after I created a couple of pages, I wanted to see how "heavy" they were on the client side. Basically, checking to see how much content (html markup, js files, css files, etc.) is being sent down to the client browser. So I fired up Fiddler2 to begin analyzing and was met with the following error in my browser:

[Fiddler] Connection to localhost failed.
Exception Text: No connection could be made because the target machine actively refused it.

So I jumped out to the Fiddler discussion forums and found the following post : New 2.0 Build - localhost refused. It turns out that Fiddler will try to use IPv6 if it detects it and my local IIS is not bound to IPv6.

The option to turn off the use of IPv6 is available from Tools->Fiddler Options on the General tab. As soon as I turned this off, everything was working again as expected. So if you are using Fiddler2 and run into this issue, turn off IPv6.

5 comments:

Khurram Saleem said...

Thanks it helped :)

Anonymous said...

Thank you. This helped me :)

At 2:00am in the morning :)

Unknown said...

Thank you! It was helpful.

Saurabh said...

Thanks ...it really helped..:)

sam said...

var listorder = new List();
listorder="have some data around 500 rows and 15 columns".

listorder.Sort(new GenericSorting("SubmissionDate", "desc"));

then its saying error propertyInfo is null in the below code

public int Compare(T x, T y)
{
PropertyInfo propertyInfo = typeof(T).GetProperty(_sortExpression);
IComparable obj1 = (IComparable)propertyInfo.GetValue(x, null);
IComparable obj2 = (IComparable)propertyInfo.GetValue(y, null);

if (SortDirection.ToLower() == "asc")
{
return obj1.CompareTo(obj2);
}
else return obj2.CompareTo(obj1);
}

Thanks in advance