views:

19

answers:

0

Hi, we are implementing a WPF webbrowser in our desktop application in c#. The browser is given the uri and its purpose is to display the same.

It works fine but sometimes it displays the navcancl.htm page. Upon debugging we found that in this case our URI is getting changed by appending res://C:\WINDOWS\system32\shdoclc.dll/navcancl.htm#https://xxx/yyy.jsp.

The reason behind that is, navigating event is getting fired twice, intitially once with proper URL and then call to navigated, loaded and loadcompleted gets called. Then within a second second navigating gets fired (even though our code is invoking only once the navigate call, that was for the previous call) but this time with the navcancl.htm url. and same navigated, loaded & loadcomplted are called but browser displays a navcancl.htm error page. It will be great if any of you have faced this issue and the solution for the same. Please note that it happens inconsistantly and may not happen for hours but sometimes at a good frequency.