Profiling ASP.Net 4

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

Profiling ASP.Net 4

Postby JimS » Fri Dec 10, 2010 4:32 pm

Hi,

I am trying to Profile an ASP.NET 4 wcf REST API Service running in IIS7.5 on server 2008 r2.
When I attach and access the service through IE I get ....

HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

Is there something I am missing, I can't see any other config options in the profiler.

When I stop the profiler all starts to work.

Any help much appreciated.

thanks
Jim
JimS
 
Posts: 4
Joined: Fri Dec 10, 2010 4:23 pm

Postby Brian Donahue » Mon Dec 13, 2010 3:41 pm

Sorry, Jim, we do not have an answer for this. The IIS installation has apparently dropped the ISAPI filter that causes IIS to compile and run ASPX pages rather than serving them as static (HTML) files. It's the same error message you would get if the .NET Framework got uninstalled or the ASP .NET feature got removed on a server 2008 system.

ANTS Profiler does configure IIS when attaching. If you are actually launching rather than attaching, there is a possibility that the configuration is not being created correctly. When profiling normally (not attaching), Profiler has to create a cut-down applicationHost.config and start w3wp.exe using that config file.

In either case, we have had no reports of this message before. We may have to continue this discussion over email so we can troubleshoot it properly.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby JimS » Wed Dec 15, 2010 3:00 pm

That would be helpful. Please email me.
JimS
 
Posts: 4
Joined: Fri Dec 10, 2010 4:23 pm

Postby Brian Donahue » Thu Dec 16, 2010 1:03 pm

First, to be absolutely clear, you are using ANTS Performance profiler's "attach to a .NET 4 process" method? Because I can't see how this would reconfigure IIS, although if you use the regular "profile an ASP .NET web application in IIS" option, it attempts to copy and modify the IIS configuration and can cause problems like this because the host configuration had not been created correctly by Profiler.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby JimS » Thu Dec 16, 2010 1:55 pm

Yup you are correct. Just tried it with the "attach to a .NET 4 process" and all good. Sorry about that should have seen it. Thanks for your help.
JimS
 
Posts: 4
Joined: Fri Dec 10, 2010 4:23 pm

Postby Brian Donahue » Thu Dec 16, 2010 2:44 pm

Hello,

A bit worrying if you can't get APP to launch the website, though.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby JimS » Thu Dec 16, 2010 2:57 pm

Possibly, although I may have just been being a bit dim. I was trying to go to the .svc file and expecting the normal debug service screen. At least for my needs I think the "attach to a .NET 4 process" was the one I should have been using all along.
JimS
 
Posts: 4
Joined: Fri Dec 10, 2010 4:23 pm


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests