Profiler starts IIS apppool in .NET 2.0 for .NET 4.0 app
adamfox
Posts: 4
Hi,
I am trying to profile a .NET 4.0 web application with IIS 7.5 on Windows Server 2008 R2 Standard with ANTS Performance Profiler 7.0.
The web application I am profiling is up and running properly through IE 8 on the server and is correctly configured.
When I try to start profiling with "ASP.NET Web Application (IIS)" option, I see that ANTS is starting up its own IIS process then I see a configuration error "Unrecognized attribute 'targetFramework'" for the line
<compilation debug="true" targetFramework="4.0" />
in the applications web.config file ... the error page also displays the following
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
This error obviously makes sense as it is an invalid attribute for .NET 2.0, what is not obvious is why it is running under .NET 2.0 framework.
This is unusual as the ANTS configuration file seems to indicate it is inheriting from the configured application pools on the server but all application pools on the server are configured for .NET 4.0.
Anyone seen this behaviour before? Have any ideas about remedying?
We have reinstalled the software but are seeing the same result.
Thanks in advance for any help you can give
I am trying to profile a .NET 4.0 web application with IIS 7.5 on Windows Server 2008 R2 Standard with ANTS Performance Profiler 7.0.
The web application I am profiling is up and running properly through IE 8 on the server and is correctly configured.
When I try to start profiling with "ASP.NET Web Application (IIS)" option, I see that ANTS is starting up its own IIS process then I see a configuration error "Unrecognized attribute 'targetFramework'" for the line
<compilation debug="true" targetFramework="4.0" />
in the applications web.config file ... the error page also displays the following
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
This error obviously makes sense as it is an invalid attribute for .NET 2.0, what is not obvious is why it is running under .NET 2.0 framework.
This is unusual as the ANTS configuration file seems to indicate it is inheriting from the configured application pools on the server but all application pools on the server are configured for .NET 4.0.
Anyone seen this behaviour before? Have any ideas about remedying?
We have reinstalled the software but are seeing the same result.
Thanks in advance for any help you can give
Comments
http://www.red-gate.com/supportcenter/g ... d_versions
Thanks for your response.
We tried downgrading to 6.3 and received the same error.
We tried downgrading to 6.0 and received this exception (looks like the System.Network.Sockets assembly is still .NET 2.0):
Could not start IIS.
RedGate.Profiler.Engine.Exceptions.CannotStartSessionException
at
http://www.red-gate.com/supportcenter/C ... _start_iis
We have tried to collate the major things that can go wrong with IIS profiling.
I ask because this was last looked at in amrch and there doesnt seem to have been any resolution...
edit the applicationHost.config by hand and add the managedRuntimeVersion attribute.
Please see:
http://technet.microsoft.com/en-us/libr ... 23(v=WS.10).aspx
for offical docs on this attribute
Assuming the fix works, we should be able to roll it out in the 7.3 release.
Summary:
It appears APP 7.3 launches its IIS application pool with integrated security as opposed to classic, which prevent it from functioning, as dlls that require httpcontext.current return null.
Sorry; we did introduce a regression which means that the bug fix in v7.2 didn't get into v7.3. Thanks for letting us know.
I am arranging for our Product Support team to send you a private build of v7.3 with the fix in it.
If anyone else reading this thread has the same problem with APP 7.3, please let me know. We've taken steps to ensure that the bug is fixed for everyone in the next version of ANTS Performance Profiler.
Dom.
Project Manager,
Redgate.
ftp://support.red-gate.com/patches/ANTS ... .3.1.2.zip
Although your product team hasn't gotten around to it yet, I was able to try the patch Brian posted on another colleagues machine and it seems to be working OK again.
My red-gate evangelism campaign internally in the company is going well, and hopefully we should be able to place an order soon.
However we are also very interested in the continuous profiling aspect, which I notice is still in beta/EAP. Obviously on individual machines, the full blown experience is preferable, but am I correct in understanding the continuous profiling mode can be installed on a production server, and with history, if say a server experiences problems at 4am, the next day we would still be able to see the methods causing the issue the next day?
Does it offer the same level of detail (I.E. line-level timings? ) And what is the overall impact of actually having the profiler running permanently?
Finally, what are the licensing options? Is it paid on a per serv basis, or per the single developer assigned to work on N servers?
Thanks for your response and for letting us know that the patch from Brian is working.
To stop this thread from getting off-topic, I've answered your other questions by email.
Dom.
Project Manager,
Redgate.
Redgate Software