Waiting for connection

Code and memory profiling for .NET developers.

Waiting for connection

Postby Saran78 » Tue Nov 18, 2008 11:56 pm


We have the ANTS 3.2 licensed version.
Am trying to profile WCF service. I follow the Project Wizard to start the profiling for .NET Windows service. When I click Finsh in the wizard, the Profiler is showing "Waiting for Connection" message. It does't start the service... nothing happens after that....

(I have deployed the debug verion of my assembly(and PDB file) in the server.)

Am I missing something here.

Thanks in advance
Posts: 1
Joined: Tue Nov 18, 2008 9:28 pm

Postby Brian Donahue » Fri Nov 21, 2008 3:46 pm

I'm sorry I don't have any advice except to say it's nothing to do with the PDB. If you are left "waiting for a connection" it means that the service did not run any managed .NET code. If the service had failed to start, ANTS Profiler would have left an error message, so I assume that the service had started and is running.

You can tell if the .NET runtime had loaded by examining the process to see if it loads mscorlib.dll. If this dll is not loaded by your service, you are not running managed code, and consequently the ANTS Profiler COM dll does not load into your system 9RedGate.Profiler.Core2.dll).

The other possibility is that the Core2 dll couldn't load or had crashed. In the former case, an application event log error entry saying "couldn't coCreate Profiler" would appear.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Postby tong » Thu Apr 23, 2009 10:28 pm

Was this tested? I mean I have the same situation, trying to profile Window Service hosted WCF services. But the profiler always hangs on "Waiting for connection...". The previously-running service was stopped by the profiler but stayed stopped.

Any suggestion on what might went wrong?
Posts: 2
Joined: Thu Apr 23, 2009 9:31 pm

ANTS 3 profiling WCF service, Connection waiting...

Postby Chris.Allen » Fri Apr 24, 2009 2:35 pm

Yes, this has been tested and it does work. I think we'd need to see some logs to find out the real cause of the problem.Can you set up logging as per this article please:

http://www.red-gate.com/supportcenter/C ... wledgebase\\ANTS_Profiler\\KB200701000002.htm

(In summary, create a 'logs' folder in the profiler folder and restart the ANTS 3 service, and reproduce the problem)
Posts: 579
Joined: Thu Mar 12, 2009 3:17 pm

Postby tong » Fri Apr 24, 2009 4:06 pm

Here's what the log says:

4/24/2009 11:50:53 AM ANTSProfilerLog initialized
4/24/2009 11:50:53 AM PID = 4140
4/24/2009 11:50:53 AM Log file name = ANTSProfilerLog4140.txt
4/24/2009 11:50:53 AM OS version = Microsoft Windows NT 5.1.2600 Service Pack 3
4/24/2009 11:50:53 AM Machine name = xxx
4/24/2009 11:50:53 AM User name = yyy
4/24/2009 11:50:53 AM PARAMHOST - Listening on port 8084
4/24/2009 11:50:53 AM PARAMHOST - Listening on port 8084, channel registered
4/24/2009 11:50:54 AM EditProjectClosingWizard start
4/24/2009 11:50:54 AM EditProjectClosingWizard start
4/24/2009 11:50:54 AM Couldn't find WebDev (2008) at: C:\\Program Files\\Common Files\\Microsoft Shared\\DevServer\\9.0\\WebDev.WebServer.EXE
4/24/2009 11:50:54 AM About to show wizard
4/24/2009 11:51:02 AM Wizard dialog returned
4/24/2009 11:51:05 AM UI Start profiling
4/24/2009 11:51:05 AM ENGINE - Core2.dll found in regisry
4/24/2009 11:51:06 AM ENGINE Start profiling performance (fast mode) of windows service WCFTest
4/24/2009 11:51:06 AM ENGINE The profiler is enabled
4/24/2009 11:51:06 AM TRANSFER - Waiting for pipe connection from core
Posts: 2
Joined: Thu Apr 23, 2009 9:31 pm

Return to ANTS Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests