Comments
4 comments
-
Hi @marcf,
If you try to attach to the running process using the "Attach to .NET 4+ process" does that work successfully?
Also, the obvious question of, is there actually something using the ports in question? In the case of the original port it would be whether the ANTS Performance Profiler 10 service could restart the IIS page to launch it on the original port; for the unused port it could be something using it that you were not aware of.
A few other things to check:- Just to confirm, after this happens, are there any related errors in Event Viewer (Windows log>Application)?
- Do you have an antivirus enabled? We've seen antiviruses cause the error in your log a few times; if you do have one, can you please try disabling it temporarily to test if that allows the profiler to connect to the IIS process?
- Does it still fail if you run the profiler explicitly as administrator? (I realize you may be an admin on the machine but UAC may still block some operations if enabled.)
- Do you have any non http/https bindings? Open IIS manager, check your bindings for the site you are trying to profile, remove (if only temporarily) all bindings except for any http and https bindings (i.e. net.tcp, net.pipe, net.msmq, msmq.formatname), and then try profiling again?
Kind regards,
Alex -
If you're still having problems with IIS profiling please update to 10.1.4 and try again. This may not fix your particular issue but we identified a problem with IIS and have fixed it in this version.
-
Resolved for us. We had this same issue. Same error messages. Tried the above but still the issue persisted. We were using the shared configuration option and application directories were all on a network share. We converted to non-shared and moved all the directories local and this fixes the issue.
So the resolution for us was to convert from shared config and app on network shares to non-shared all local on the web server. -
Thats great to know, thank you @BaseBall_99 .
Add comment
Please sign in to leave a comment.
It fails with the following when I ask it to use the existing port:
Couldn't start the profiling session
Cause: Timed out waiting for port 8002 on 127.0.0.1 to become available
I get the same error when I ask it to use an unused port:
Couldn't start the profiling session
Cause: Timed out waiting for port 8015 on 127.0.0.1 to become available
Note the application normally takes 15 seconds to load the very first page due to warm-up.
The last lines from the log file as as follows:
I can see a new w3wp.exe process is spawned and it sits at a constant 5,676 K memory according to Task Manager.