Support Tip: Synthetic transaction monitoring in Operations Manager fails with 404 error
Published Feb 16 2019 01:51 AM 277 Views
First published on TECHNET on Jun 02, 2015

~ Arun Kumar | Support Escalation Engineer

You may encounter an issue in Operations Manager where you will be able to record web transactions just fine, but when running the test manually or when OpsMgr runs it per a schedule, it fails with a 404 error on some of the URLs.

This can potentially happen if URL redirection is being used and the URL contains a “#” character. For example, assume that the page on a website is using server side URL redirection and the URL redirection involves a "#" character. In this scenario, any application that uses WinHTTP to access this URL will fail and return an HTTP 404 error. If you investigate this using a fiddler trace you’ll see something similar to the following:

Agents 1st request

GET https://www.contoso.com HTTP/1.1
Connection: Keep-Alive
Accept: */*
Accept-Encoding: GZIP
Accept-Language: en-us
User-Agent: Microsoft Monitoring Agent 7.1.10184.0
Host: server.contoso.com

Server's response

HTTP/1.1 302 Found
Date:
Location: https:// www.contoso.com/en/location-chooser.html#origuri=/en.html
Content-Length: 267
Keep-Alive: timeout=10, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

Note that the server is redirecting the client to the URL specified in the location tag in the above response (https://www.contoso.com/en/location-chooser.html#origuri=/en.html).

Agents 2nd request in response to server reply above

GET https:// www.contoso.com/en/locat HTTP/1.1 >>>>>> Note the URL here is truncated
Connection: Keep-Alive
Accept: */*
Accept-Encoding: GZIP
Accept-Language: en-us
User-Agent: Microsoft Monitoring Agent 7.1.10184.0
Host: server.contoso.com

Server Response

HTTP/1.1 404 Not Found >>>>> Since the URL is invalid we get a 404 Not Found
Date:
Last-Modified: Tue, 06 Jun 2015 19:05:05 GMT
Accept-Ranges: bytes
Content-Length: 5745
Keep-Alive: timeout=10, max=99
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8

If you encounter this problem, the resolution is to install the Windows hotfix below:

3047732 - "HTTP 404" error when you access a website with URL redirection in Windows ( https://support.microsoft.com/en-us/kb/3047732 )

You’ll want to install the hotfix on the watcher node, then reboot the machine and re-run the test. It should now complete as expected.

Arun Kumar | Support Escalation Engineer | Microsoft GBS Management and Security Division

Get the latest System Center news on Facebook and Twitter :

System Center All Up: http://blogs.technet.com/b/systemcenter/

Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
Data Protection Manager Team blog: http://blogs.technet.com/dpm/
Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
Operations Manager Team blog: http://blogs.technet.com/momteam/
Service Manager Team blog: http://blogs.technet.com/b/servicemanager
Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Microsoft Intune: http://blogs.technet.com/b/microsoftintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The RMS blog: http://blogs.technet.com/b/rms/
App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv
The Surface Team blog: http://blogs.technet.com/b/surface/
The Application Proxy blog: http://blogs.technet.com/b/applicationproxyblog/

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

System Center 2012 Operations Manager System Center 2012 R2 Operations Manager OpsMgr 2012 R2

Version history
Last update:
‎Mar 11 2019 10:22 AM
Updated by: