Red Gate forums :: View topic - Profiling ASP.Net 4
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Performance Profiler 6
ANTS Performance Profiler 6 forum

Profiling ASP.Net 4

Search in ANTS Performance Profiler 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
JimS



Joined: 10 Dec 2010
Posts: 4

PostPosted: Fri Dec 10, 2010 4:32 pm    Post subject: Profiling ASP.Net 4 Reply with quote

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
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Mon Dec 13, 2010 3:41 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
JimS



Joined: 10 Dec 2010
Posts: 4

PostPosted: Wed Dec 15, 2010 3:00 pm    Post subject: Reply with quote

That would be helpful. Please email me.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Thu Dec 16, 2010 1:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
JimS



Joined: 10 Dec 2010
Posts: 4

PostPosted: Thu Dec 16, 2010 1:55 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6577

PostPosted: Thu Dec 16, 2010 2:44 pm    Post subject: Reply with quote

Hello,

A bit worrying if you can't get APP to launch the website, though.
Back to top
View user's profile Send private message
JimS



Joined: 10 Dec 2010
Posts: 4

PostPosted: Thu Dec 16, 2010 2:57 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group