IE11 HandleHTTPNegotiations set to true and add either OnDataAvailable or OnResponse throw exception

Add-in Express™ Support Service
That's what is more important than anything else

IE11 HandleHTTPNegotiations set to true and add either OnDataAvailable or OnResponse throw exception
IE11 HandleHTTPNegotiations set to true and add either OnDataAvailable or OnResponse throw exception 
Quoc Quach




Posts: 17
Joined: 2013-05-09
Information:
Browser: IE11 on Window7 64x
Visual Studio 10 SP1
.Net Framework: 4.0

Step to reproduce:
Case 1. set HandleHTTPNegotiations to true, and just add a handler to OnDataAvailable (empty function - without any code)
Open IE browser with home page https://www.google.com
Type in Address box, "http://www.cnn.com/WORLD/?hpt=sitenav"
While loading the page exception throws with information as below.

Detailed technical information follows:
---
(Inner Exception)
Date and Time: 5/15/2014 2:40:57 PM
Machine Name: W7T430QUOC
IP Address: fe80::6100:4e51:1d36:4420%11
Current User: CTS\qquach

Application Domain: C:\GitRoot\Experimental\Experimental\TestIE11\bin\Debug\
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0

Exception Source: mscorlib
Exception Type: System.AccessViolationException
Exception Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Exception Target Site: GetTypedObjectForIUnknown

---- Stack Trace ----
System.Runtime.InteropServices.Marshal.GetTypedObjectForIUnknown(pUnk As IntPtr, t As Type)
mscorlib.dll: N 00000 (0x0) JIT
AddinExpress.IE.ADXIEResponseEventArgs.get_Url()
mscorlib.dll: N 0123 (0x7B) IL
TestIE11.IEModule.IEModule_OnResponse(sender As Object, e As ADXIEResponseEventArgs)
IEModule.cs: line 0110, col 04, IL 0001 (0x1)
AddinExpress.IE.ADXIEModule.AddinExpress.IE.IHttpNegotiate3.OnResponse(dwResponseCode As UInt32, szResponseHeaders As IntPtr, szRequestHeaders As String, pszAdditionalRequestHeaders As IntPtr&)
mscorlib.dll: N 0066 (0x42) IL



(Outer Exception)
Date and Time: 5/15/2014 2:40:57 PM
Machine Name: W7T430QUOC
IP Address: fe80::6100:4e51:1d36:4420%11
Current User: CTS\qquach

Application Domain: C:\GitRoot\Experimental\Experimental\TestIE11\bin\Debug\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.IE/9.0.6121.0__4416dd98f0861965/AddinExpress.IE.dll
Assembly Full Name: AddinExpress.IE, Version=9.0.6121.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 9.0.6121.0

Exception Source:
Exception Type: AddinExpress.IE.ADXIEExternalException
Exception Message: An error has occurred in the code of the extension.
Exception Target Site: Object reference not set to an instance of an object.

---- Stack Trace ----

Case 2:
Keep the setting HandleHTTPNegotiations as true,
Remove the handler OnResponse, and add the handler for OnDataAvailable. Just empty function.
Rebuild and restart the browser with home page "https://www.google.com"
Type in the address box: "http://www.cnn.com/".
Sometime it throws exception right away, sometime I need to click on a few links "main menu" to get exception.

I don't have problem for IE8-10
Posted 15 May, 2014 17:18:06 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Quoc,

Thank you for the bug report. I will test it.
Posted 16 May, 2014 08:00:41 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Quoc, I managed to reproduce the issue. We will fix it as soon as possible.
Posted 16 May, 2014 10:44:28 Top
Quoc Quach




Posts: 17
Joined: 2013-05-09
Thanks for a quick reply. I'm looking forward to see the fix
Posted 16 May, 2014 12:40:00 Top
kp2014




Posts: 13
Joined: 2014-05-15
We have the same problem in IE11 on Window7 64x.
We actually ported our plugin to Add-In Express because we couldn't get it to work in IE11 on Windows7 x64.
We really look forward to seeing the fix. Is there an ETA (estimated time of arrival) of the fix?
Posted 21 May, 2014 05:31:59 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi All,

The fix will be published in a couple of weeks.
Posted 21 May, 2014 05:50:24 Top
kp2014




Posts: 13
Joined: 2014-05-15
Is there a work-around?
Posted 21 May, 2014 06:44:40 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
No, what version of Add-in Express for IE do you use?
Posted 21 May, 2014 08:31:14 Top
kp2014




Posts: 13
Joined: 2014-05-15
We use version 9.0.6121.0

Visual Studio 2013
.NET Framework 2.0
Posted 21 May, 2014 08:44:48 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi kp2014,

I will send you a hotfix by e-mail shortly.
Posted 22 May, 2014 05:12:09 Top