Under Review
Last Updated: 22 Oct 2019 08:32 by ADMIN
PATRICK
Created on: 03 Oct 2019 20:51
Type: Bug Report
1
Enabling capture causes exception

I get the following exception saying to quit or continue the application, if I continue capture does not begin.

Here's the content of the error:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): The parameter is incorrect
   at Telerik.NetworkConnections.Windows.WinINetPInvokes.ExecuteInternetQueryOrSetOption(String connectionName, INTERNET_PER_CONN_OPTION[] pOptions, Func`3 internetQueryOrSetOption, Action`1 success)
   at Telerik.NetworkConnections.Windows.WinINetPInvokes.SetProxySettingsForNetworkConnection(WinINetProxySettings proxySettings, String connectionName)
   at Telerik.NetworkConnections.NetworkConnectionsManager.SetProxySettingsForConnections(ProxySettings settings, IEnumerable`1 fullNames)
   at ..(ProxySettings ) in C:\Jenkins\Fiddler_Windows\workspace\Fiddler2\Common\Core\Connectoids.cs:line 177
   at Fiddler.Proxy.Attach(Boolean ‰) in C:\Jenkins\Fiddler_Windows\workspace\Fiddler2\Common\Core\Proxy.cs:line 1084
   at Fiddler.frmViewer.actAttachProxy(Boolean ™—) in C:\Jenkins\Fiddler_Windows\workspace\Fiddler2\Viewer.cs:line 6996
   at Fiddler.frmViewer.actToggleCapture() in C:\Jenkins\Fiddler_Windows\workspace\Fiddler2\Viewer.cs:line 6951
   at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.MenuItem.ShortcutClick()
   at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3416.0 built by: NET472REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Fiddler
    Assembly Version: 5.0.20194.41348
    Win32 Version: 5.0.20194.41348
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Fiddler.exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3416.0 built by: NET472REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3429.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Analytics
    Assembly Version: 1.0.20182.27266
    Win32 Version: 1.0.20182.27266
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Analytics.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Xceed.Zip.v5.4
    Assembly Version: 5.4.13572.13590
    Win32 Version: 5.4.13572.13590
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Xceed.Zip.v5.4.DLL
----------------------------------------
Xceed.Compression.Formats.v5.4
    Assembly Version: 5.4.13572.13590
    Win32 Version: 5.4.13572.13590
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Xceed.Compression.Formats.v5.4.DLL
----------------------------------------
Xceed.FileSystem.v5.4
    Assembly Version: 5.4.13572.13590
    Win32 Version: 5.4.13572.13590
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Xceed.FileSystem.v5.4.DLL
----------------------------------------
Xceed.Compression.v5.4
    Assembly Version: 5.4.13572.13590
    Win32 Version: 5.4.13572.13590
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Xceed.Compression.v5.4.DLL
----------------------------------------
System.ComponentModel.Composition
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
----------------------------------------
Telerik.NetworkConnections
    Assembly Version: 0.1.2.0
    Win32 Version: 0.1.2.0
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Telerik.NetworkConnections.DLL
----------------------------------------
Telerik.NetworkConnections.Windows
    Assembly Version: 0.1.2.0
    Win32 Version: 0.1.2.0
    CodeBase: file:///C:/USERS/PTGASIOR/APPDATA/LOCAL/PROGRAMS/FIDDLER/PLUGINS/NETWORKCONNECTIONS/TELERIK.NETWORKCONNECTIONS.WINDOWS.DLL
----------------------------------------
MetadataViewProxies_dbac9d84-e6bb-477e-b097-db3e376a8e1e
    Assembly Version: 0.0.0.0
    Win32 Version: 4.7.3062.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll
----------------------------------------
Standard
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.0
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Inspectors/Standard.dll
----------------------------------------
SyntaxView
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.0
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Inspectors/SyntaxView.dll
----------------------------------------
neXpert
    Assembly Version: 1.2.0.1
    Win32 Version: 1.2.0.1
    CodeBase: file:///C:/Users/ptgasior/OneDrive%20-%20Mercy%20Online/Fiddler2/Scripts/neXpert.DLL
----------------------------------------
FiddlerOrchestra.Addon
    Assembly Version: 1.0.20194.41348
    Win32 Version: 1.0.20194.41348
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Scripts/FiddlerOrchestra.Addon.dll
----------------------------------------
FiddlerOrchestra.Connection
    Assembly Version: 1.0.20194.41348
    Win32 Version: 1.0.20194.41348
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Scripts/FiddlerOrchestra.Connection.dll
----------------------------------------
netstandard
    Assembly Version: 2.0.0.0
    Win32 Version: 4.7.3062.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll
----------------------------------------
FiddlerOrchestra.Protocol
    Assembly Version: 1.0.20194.41348
    Win32 Version: 1.0.20194.41348
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Scripts/FiddlerOrchestra.Protocol.dll
----------------------------------------
FiddlerOrchestra.Utilities
    Assembly Version: 1.0.20194.41348
    Win32 Version: 1.0.20194.41348
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Scripts/FiddlerOrchestra.Utilities.dll
----------------------------------------
RulesTab2
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.0
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Scripts/RulesTab2.dll
----------------------------------------
SimpleFilter
    Assembly Version: 2.6.2.0
    Win32 Version: 2.6.2.0
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Scripts/SimpleFilter.dll
----------------------------------------
Timeline
    Assembly Version: 2.6.0.3
    Win32 Version: 2.6.0.3
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Scripts/Timeline.dll
----------------------------------------
Microsoft.JScript
    Assembly Version: 10.0.0.0
    Win32 Version: 14.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.JScript/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
----------------------------------------
System.Windows
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Windows.dll
----------------------------------------
JScript Thunk Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 14.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.JScript/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
----------------------------------------
BJ1kDtJ5
    Assembly Version: 0.0.0.0
    Win32 Version: 14.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.JScript/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
GA.Analytics.Monitor
    Assembly Version: 1.0.20182.27266
    Win32 Version: 1.0.20182.27266
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/GA.Analytics.Monitor.DLL
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
System.Security
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
Newtonsoft.Json
    Assembly Version: 11.0.0.0
    Win32 Version: 11.0.2.21924
    CodeBase: file:///C:/Users/ptgasior/AppData/Local/Programs/Fiddler/Newtonsoft.Json.DLL
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3440.0 built by: NET472REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

11 comments
ADMIN
Boby
Posted on: 22 Oct 2019 08:32

Hello Patrick,

Do you mean that the check box for starting as system proxy is unchecked, as I just checked the code and it seems we are not disabling it (it should become grayed out in this case) anywhere?

Otherwise, we investigated the call stack again, and the method that's failing is InternetSetOption in wininet.dll. What's happening behind the scenes:

- on startup, Fiddler is getting the network connections for the OS, and replaces their proxy settings with the ones pointing to the port it's listening onto (127.0.0.1:8888 by default). It seems the "replace step" is the one that fails

- on exit, Fiddler is restoring the previous settings proxy settings.

That said, probably there are some obscure network connections (or proxy settings for these connections), which are breaking the Win32 call we are making. Could you check whether you have some "strange" or non-trivial network connections, or whether you use some proxy by default (e.g. some corporate proxy)? 

Also, something that could probably help is to enable DebugSpew mode (by adding the DebugSpew regkey), in which Fiddler logs messages to the debug output. These messages can be monitored using DebugView for example.

I also did a quick research, but it seems the error is not so common case - anyway I am posting it here in case you recognize some of the scenario mentioned, e.g. the Error Message: Proxy Reports: 87 The parameter Is Incorrect one.

Regards,
Boby
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
PATRICK
Posted on: 15 Oct 2019 19:15

The check box for start as system proxy is disabled. I reverted to the Fiddler on the website since the code you provided via zip would not start at all. So now, even with SAZ, I can not manually start tracing as it leads back to the the debug screen I post in the beginning of this bug report.

Please let me know what you'd like me to try next.

Thank you for your continued patience.

Patrick

 
ADMIN
Boby
Posted on: 15 Oct 2019 07:20

Hello Patrick,

I misunderstood you that double clicking on a SAZ file permanently fixed the problem.

When double clicking a SAZ file, Fiddler starts with capturing disabled. This got me thinking that maybe the code is running in a concurrency issue during the normal startup, which is done with capturing enabled. Could you try to disable the capturing on startup, to check whether this will fix the problem as well? There is setting in Tools -> Options -> Connections -> Act as a system proxy on startup. When disabled, you would need to manually start capturing after app start (convenient way is to use the F12 keyboard shortcut). This could as well be a more pleasant workaround that always starting using a SAZ file.

Regards,
Boby
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
PATRICK
Posted on: 11 Oct 2019 14:35
Okay, thank you for the update. At least for now I have a work around of starting up via an archive file.
ADMIN
Boby
Posted on: 11 Oct 2019 05:45

Hello Patrick,

Thanks for the information, I will decline the bug report for now, though with unknown reason. If you find additional information, we can go back to investigation phase.

Regards,
Boby
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
PATRICK
Posted on: 10 Oct 2019 14:14

Boby,

An update, I opened Fiddler via double-clicking an archive and fiddler opens/loads archive. Also, capture works.

 

PATRICK
Posted on: 09 Oct 2019 14:18

Boby, I've replaced those files and now Fiddler doesn't get past start screen. (see attached)

 

ADMIN
Boby
Posted on: 09 Oct 2019 09:58

Hello Patrick,

Thank you for the additional information.

Our current thinking is that we are trying to push the adoption of the newest versions, so official archive of previous versions is not provided. Instead, could we try to debug this a little further - if possible, could you try copying the attached files to the following places:

- Telerik.NetworkConnections.dll and Telerik.NetworkConnections.pdb to the Fiddler install directory (by default C:\Users\<username>\AppData\Local\Programs\Fiddler). Overwrite the files with the same name.

- Telerik.NetworkConnections.Windows.dll and Telerik.NetworkConnections.Windows.pdb to the Plugins directory (by default C:\Users\<username>\AppData\Local\Programs\Fiddler\Plugins\NetworkConnections)

This will ensure that PDBs are locally present, and will give us better call stack with source code line numbers (including for the top of the stack, where currently they are missing) at the moment of the exception.

Regards,
Boby
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Attached Files:
PATRICK
Posted on: 04 Oct 2019 14:06

Do you by any chance use 32-bit version of Windows 10? No, its 64-bit

Was this working in previous Fiddler versions (especially versions prior 5.0.20192.2 5091, for which we have reports as well)? It was working in prior version, but not sure what that was. Is there an archive area where I can download an older version to see if problem goes away?

ADMIN
Boby
Posted on: 04 Oct 2019 13:11

Hi Patrick,

We've had similar error reports in the past (see here) but the reason is still unknown to us as we cannot reproduce the issue locally. Do you by any chance use 32-bit version of Windows 10? Was this working in previous Fiddler versions (especially versions prior 5.0.20192.25091, for which we have reports as well)?

Regards,
Boby
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
PATRICK
Posted on: 03 Oct 2019 20:56
The OS is win10 enterprise