Use Fiddler with NAV

Fiddler is a nice tool for sniffing network traffic.

It can be downloaded here: http://www.telerik.com/fiddler.

When I needed to sniff my network traffic (NAV Consume Webservice Black-Belt ) I discovered that Fiddler “out-of-the-box” does not show the Network packages from NAV.

This is cause NAV instance is running as a service and Fiddler only looks at processes within your current session.

If you need to sniff the network packages from NAV as well please follow these steps:

This is done like this:

  1. Go to : C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config
  2. locate the file machine.config.
  3. open the file (first create a backup)
  4. locate the section <system.net>  (or create this section at the bottom , within configuration tag).
    Update the section to:

      <!-- The following section is to force use of Fiddler for all 
           applications, including those running in service accounts -->
      <system.net>
         <defaultProxy
            enabled = "true"
            useDefaultCredentials = "true">
            <proxy autoDetect="false" bypassonlocal="false" 
                proxyaddress="http://127.0.0.1:8888" 
                usesystemdefault="false" />
          </defaultProxy>
      </system.net>
  5. Restart NAV Service tier.
  6. (do not forget to remove this section (use the backup from step 3) and restart NAV after sniffing.

This makes the NAV calls visible within Fiddler!

 

Cheers!

Advertisements

2 thoughts on “Use Fiddler with NAV

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s