| Author |
Message |
JimS
Joined: 10 Dec 2010 Posts: 4
|
Posted: Fri Dec 10, 2010 4:32 pm Post subject: Profiling ASP.Net 4 |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Mon Dec 13, 2010 3:41 pm Post subject: |
|
|
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
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
JimS
Joined: 10 Dec 2010 Posts: 4
|
Posted: Wed Dec 15, 2010 3:00 pm Post subject: |
|
|
| That would be helpful. Please email me. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Thu Dec 16, 2010 1:03 pm Post subject: |
|
|
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
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
JimS
Joined: 10 Dec 2010 Posts: 4
|
Posted: Thu Dec 16, 2010 1:55 pm Post subject: |
|
|
| 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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Thu Dec 16, 2010 2:44 pm Post subject: |
|
|
Hello,
A bit worrying if you can't get APP to launch the website, though. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
JimS
Joined: 10 Dec 2010 Posts: 4
|
Posted: Thu Dec 16, 2010 2:57 pm Post subject: |
|
|
| 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 |
|
 |
|