We’re tracking the total time it takes for a request to be responded to. We implemented added custom header: request.headers.add("reqKey",key)
with an unique key to the request in Application_AcquireRequestState of our global.asax.cs.
When the Application_PostRequestHandlerExecute is hit for that request, it pulls the custom header with the unique key back out and uses that record the total response time. A bunch of other stuff is also logged with this, such as username, form data, etc., not just simple timings.
This currently works just fine when the code runs on IIS 7.5. However, when it’s ran on an ASP.Net Development server, it throws a Operation is not supported on this platform exception.
Our Prod is IIS 7, so should how do I get around this error?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
You can use IIS 7.5 Express if you are using VS2010 SP1. Download from here:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=abc59783-89de-4adc-b770-0a720bb21deb
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0