Error Stopping IISAdmin

Hello
I downloaded the trial version of the latest ANTS profiler.
My machine is Windows 2000, .NET 1.1 and IIS 5.0

When I go through the wizard, I give the following information.
Select ASP.NET web application hosted in IIS
PATH:
http://application url
.NET framework version : 1.1
IIS version : IIS 5
Username : ASPNET
Password : Automatically Detected

When I click Finish - It prompts for restarting the IIS, and when I give YES, IT shows the following error

THERE WAS A PROBLEM STARTING THE PROFILER
ERROR STOPPING IISADMIN
PLEASE CHECK THE EVEN LOG FOR MORE DETAILS

and the Event log has

Unable to start profiler - exception details System.Exception: Error stopping IISAdmin ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

Server stack trace: 
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)
   at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
   at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
   at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
   at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
   at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at RedGate.Profiler.Engine.ProfilingSession.ServiceStatusCallback(Object sender, StatusEventArgs e)
   at RedGate.Profiler.Engine.ProfileIISController._1(StatusEventArgs )
   at RedGate.Profiler.Engine.ProfileIISController._5()
   --- End of inner exception stack trace ---

Server stack trace: 
   at RedGate.Profiler.Engine.ProfileIISController._5()
   at RedGate.Profiler.Engine.ProfileIISController.StartProfilingIIS(String currentUserName, String& url, WebApplicationDefinition appDef)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]: 
   at RedGate.Profiler.Engine.ProfilingSession.StartProfiler()
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [1]: 
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
   at System.Windows.Forms.MethodInvoker.EndInvoke(IAsyncResult result)
   at _5._4(IAsyncResult )

I have gone through some previous posts and they all point to the port being used issue. Could you please assist me in figuring out this issue?

Thanks in advance

Comments

  • I created the 'log' folder under the installation directory and found these two files once the error occurred.

    IISProfileHostLog - has the following
    12/28/2007 4:07:59 AM	StartProfilingIIS currentUserName SERVERNAME\Administrator, url http://xxxxx/xxxx, .NET 2.0 OnePointOne, IIS5
    12/28/2007 4:07:59 AM	Parse IIS metabase
    12/28/2007 4:07:59 AM	InitServiceList
    12/28/2007 4:07:59 AM	StartIIS
    12/28/2007 4:07:59 AM	StopServicesInOrder
    12/28/2007 4:08:01 AM	Error, unable to stop IISAdmin	[ProfileIISController.StopServicesInOrder()]
    

    ANTS Profiler has the following -
    12/28/2007 4:06:08 AM	ANTSProfilerLog initialized
    12/28/2007 4:06:08 AM	PID = 1064
    12/28/2007 4:06:08 AM	Log file name = ANTSProfilerLog1064.txt
    12/28/2007 4:06:08 AM	OS version = Microsoft Windows NT 5.0.2195 Service Pack 4
    12/28/2007 4:06:08 AM	Machine name = SERVERNAME
    12/28/2007 4:06:08 AM	User name = Administrator
    12/28/2007 4:06:08 AM	PARAMHOST - Listening on port 8084
    12/28/2007 4:06:09 AM	PARAMHOST - Listening on port 8084, channel registered
    12/28/2007 4:06:12 AM	EditProjectClosingWizard start
    12/28/2007 4:06:12 AM	EditProjectClosingWizard start
    12/28/2007 4:06:12 AM	Couldn't find WebDev at: C:\WINNT\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.exe
    12/28/2007 4:06:13 AM	Using IIS Version 5
    12/28/2007 4:06:13 AM	Using default .NET 2.0 credentials
    12/28/2007 4:06:13 AM	Using default .NET 2.0 credentials
    12/28/2007 4:06:13 AM	About to show wizard
    12/28/2007 4:07:54 AM	Wizard dialog returned
    12/28/2007 4:07:56 AM	UI Start profiling
    12/28/2007 4:07:56 AM	ENGINE - Core2.dll found in regisry
    12/28/2007 4:07:58 AM	ENGINE Start profiling performance of ASP.NET web application http://xxxxx/xxxxx
    12/28/2007 4:07:58 AM	ENGINE The profiler is enabled
    12/28/2007 4:07:58 AM	TRANSFER - Waiting for pipe connection from core
    12/28/2007 4:07:58 AM	Starting IIS Profile host - checking if service available
    12/28/2007 4:07:58 AM	Found ANTS Profiler 3 Service, attempting start
    12/28/2007 4:07:58 AM	Service started. Checking port available
    12/28/2007 4:07:58 AM	WaitForPort on address 127.0.0.1, port 8086
    12/28/2007 4:07:58 AM	Port is accepting connections - service now running
    12/28/2007 4:07:59 AM	ENGINE - Managed to hook into status updates from IIS Profile Host
    12/28/2007 4:08:01 AM	ENGINE - Caught Exception in ProfilingSession: Error stopping IISAdmin
    
  • Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hi and thanks for posting. I suspect the problem could be Windows Management Instruemtation which is used to programatically start and stop the services, so checking that the WMI service is running may help.

    If it's not that, it could be a routing problem in a computer with two network interface cards and the request is going to an interface that doesn't have the NETBIOS protocol enabled.

    Something is causing Windows to explicitly terminate connections to the computer when a netbios/WMI connection is requested.
Sign In or Register to comment.