Apr 04, 2012, 6:48 PM
Trying to invoke DirectMethod multiple times is causing an error on Internet Explorer 7
Hi,
First post, so please be gentle. :-)
I am trying to call a direct method from JavaScript. On success, I just add the data to the store.
Based on other posts, I think it may be a timeout issue, but I have a timeout specified and I also tried:
If someone has any suggestions, that would be great.
Thanks,
Eric
First post, so please be gentle. :-)
I am trying to call a direct method from JavaScript. On success, I just add the data to the store.
Ext.net.DirectMethods.UC.FetchDataFromRemote(arrayOfObjs[i],
{
success: function (returnList) {
myStore.loadData(returnList, true);
},
failure: function (result, response, control, eventType, action, extraParams, o) {
if (response.isAbort) {
Ext.Msg.alert("An error occurred", "An error occurred... process was aborted");
}
},
timeout: 900000,
showFailureWarning: true
});
It works well on Firefox, but when I try it on IE 7, I'm getting an error in the UI that says Transaction aborted (-1). If I inspect the error that is returning in the failure, I'm getting this message:result "System.Runtime.InteropServices.COMException (0x80010002): Call was canceled by the message filter. (Exception from HRESULT: 0x80010002 (RPC_E_CALL_CANCELED))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementScope.Connect()
at PatchUtility.CompanyX.PatchUtility.Windows.Utilities.ConfigurationUtilities.GetQuickFixEngineeringData(String serverName, Int32 idStart, String userName, String password) in C:\local\develop\visualstudio\CompanyX-patch-utility-app\PatchUtility\CompanyX\PatchUtility\Windows\Utilities\WindowsUtilities.cs:line 64
at PatchUtility.Search_Form.FetchDataFromRemoteServers(String[] servers) in C:\local\develop\visualstudio\CompanyX-patch-utility-app\PatchUtility\Search_Form.aspx.cs:line 1407" String
If I test using one value at a time, each will run successfully. However, when I pass in an array with multiple items, then I get this error. The problem doesn't occur in Firefox.Based on other posts, I think it may be a timeout issue, but I have a timeout specified and I also tried:
Ext.net.DirectEvent.timeout = 120000;
that was suggested in another post.If someone has any suggestions, that would be great.
Thanks,
Eric