No connection could be made because the target machine actively refused it

No connection could be made because the target machine actively refused it

Old forum URL: forums.lhotka.net/forums/t/4898.aspx


thaehn posted on Tuesday, May 27, 2008

I installed CSLA 3.5 and the Project Tracker sample application on Windows Server 2008 with IIS 7 and Microsoft SQLExpress.  When I executed the Windows Forms application I would get this error trying to load WCF:

TCP error code 10061: No connection could be made because the target machine actively refused it

After several hours of fooling around with the security and setup of IIS 7.0, I discovered that I was actually SQLExpress that was causing the error becuase the TCP protocol is off by default.  When I turned it on in SQL Server Configuration Manager, the application was able to come up without incident.  I just wanted to post this here as a solution to this error in case other people run into the same problem.

Todd

Copyright (c) Marimer LLC