Last post Apr 17, 2013 11:51 AM by Pengzhen Song - MSFT
Apr 16, 2013 08:49 PM|shail27|LINK
I have an application in which i use the WebBrowser Control. I have a URL which i pass to the control. That URL has a popup with for entering credentials and it was all working fine. I was using the functionality mentioned in the below link. I had to use
this because without this code, i ran into some issues when i login as the cookie was not getting refreshed. This worked from IE 6.0 to IE 9.0.
But now, this code does not work for IE 10.
Following is the line that causes the issue
if (!returnValue && (ERROR_NO_MORE_ITEMS == Marshal.GetLastWin32Error() || ERROR_FILE_NOT_FOUND == Marshal.GetLastWin32Error()))
here Marshal.GetLastWin32Error() never returns a value that equals the constant when that machine has IE 10 installed. But when i try the same code on a different machine with IE 9.0 or below, this method returns a value which equals one of the constant.
My IE Version
Update Version: 10.0.4
and the targeted .NET Framework Version is 3.5. On the same machine when i uninstalled IE 10 and installed IE 9.0, it is working fine again. So i guess it is just an issue with having IE 10.
Can anyone please let me know if we need any changes to this.
Apr 17, 2013 11:51 AM|Pengzhen Song - MSFT|LINK
Please referh the resolved thread:
Hope it can help you