Trying to setup the WCF data Portal getting machine actively refused connection

Trying to setup the WCF data Portal getting machine actively refused connection

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


checlark posted on Thursday, November 01, 2007

I am trying to setup the WCF data portal but I am getting the machine actively refused connection error. Anyone else ran into this problem? I realize that many factors could cause this, but I dont want to jack my machine up trying different things so really what I am asking is for some suggestions as to where to start. I figure it has to be permissions or firewall issue. Any ideas would be helpful.

RockfordLhotka replied on Thursday, November 01, 2007

If you are hosting the WCF data portal in IIS and ASP.NET, then a good place to start is to put a simple aspx page into that virtual root and try to access it from a browser. That will help establish that you have IIS, ASP.NET, http and port 80 all working.

checlark replied on Thursday, November 01, 2007

Hey Rocky,

I tried the aspx pages and was able to access them.

Here is the error as I get it.

An exception of type 'System.ServiceModel.EndpointNotFoundException' occurred in mscorlib.dll but was not handled in user code

Additional information: Could not connect to http://192.168.0.217:3564/IndicoWCFHost/WcfPortal.svc. TCP error code 10061: No connection could be made because the target machine actively refused it.

The method of occurance is DataPortalResult Fetch in WcfProxy.cs and the line of code being executed is

WcfResponse response = svr.Fetch(new FetchRequest(objectType, criteria, context));

RockfordLhotka replied on Thursday, November 01, 2007

But you are able, from that same client machine, to navigate to something like

http://192.168.0.217:3564/IndicoWCFHost/testpage.aspx

??

Oh, and did you notice "Indico" should probably be "Indigo"?

checlark replied on Thursday, November 01, 2007

Yes, I can navigate to the test pages. Indico is my company's name.

checlark replied on Thursday, November 01, 2007

Sorry, just tried it using the port number with the test pages with no luck. Without port number works fine. Also tried the service itself without port number and had no luck. As a final note, I did open up port 3564 in windows firewall.

RockfordLhotka replied on Thursday, November 01, 2007

It certainly sounds like a port/firewall/security issue. At which point you are out of my area of expertise. I know there are traffic sniffers and ways you can turn on tracing in WCF to watch what’s happening in more detail. Juval Lowy’s book on WCF can probably help with some of the WCF tracing configuration options – a google search (or others on this forum) may have good ideas for TCP packet sniffers.

 

Rocky

 

 

From: checlark [mailto:cslanet@lhotka.net]
Sent: Thursday, November 01, 2007 3:40 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Trying to setup the WCF data Portal getting machine actively refused connection

 

Sorry, just tried it using the port number with the test pages with no luck. Without port number works fine. Also tried the service itself without port number and had no luck. As a final note, I did open up port 3564 in windows firewall.

checlark replied on Thursday, November 01, 2007

Thanks for the advice Rocky, I will check into it.

Wendy replied on Friday, February 01, 2008

I have the same problem.  How do you fixed it??

Wendy M. A.

 

Stuart replied on Saturday, February 23, 2008

I got the PT project and CSLA (version 3) up and running under XP/VS2005 SP1 without much effort. Then I tried it under Vista Ultimate recieved the same error. I've tried it with and without UAC turned on,  messed about with IIS 7 for a while, downloaded the hot fixes and so on. Another Vista challenge, Rocky?

RockfordLhotka replied on Saturday, February 23, 2008

It could be a Vista thing, though I’m running everything under Vista just fine. I remember having to mess around with IIS7 to get it working though – you have to set up the virtual root as an application and all the same stuff as in IIS6, but of course the admin tools are all different.

 

I’m running with UAC on btw, so it isn’t UAC that’s the issue – the challenges I had were with figuring out the new admin tool layout.

 

Rocky

 

From: Stuart [mailto:cslanet@lhotka.net]
Sent: Saturday, February 23, 2008 9:09 AM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Trying to setup the WCF data Portal getting machine actively refused connection

 

I got the PT project and CSLA (version 3) up and running under XP/VS2005 SP1 without much effort. Then I tried it under Vista Ultimate recieved the same error. I've tried it with and without UAC turned on,  messed about with IIS 7 for a while, downloaded the hot fixes and so on. Another Vista challenge, Rocky?

ajayubbott replied on Wednesday, February 04, 2009

Hi,

I am also having similar problem while running PTWeb application. The following error appears past the Login screen: -

No connection could be made because the target machine actively refused it 127.0.0.1:4147
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:4147

Source File: C:\Visual Studio Projects\csla\Source\DataPortalClient\WcfProxy.cs    Line: 130

The environment on my machine is: -
Windows XP Professional SP3, IIS 5.1, IE 6.0.2900, CSLA.Net 3.6

I have gone through the threads on similar error on this forum and have installed the PTWeb application in the IIS as per the install document.

Kindly advise

Thank you,


RockfordLhotka replied on Wednesday, February 04, 2009

Check the port number of the WcfHost project and the client’s config file. Obviously the port numbers must match, and Visual Studio sometimes changes the port on a web site behind the scenes.

 

Rocky

Copyright (c) Marimer LLC