Windows Develop Bookmark and Share   
 index > Windows Forms General > Error navigating to "https" site from webbrowser control
 

Error navigating to "https" site from webbrowser control

Hi i am using webbrowser control under windows forms. When i navigate to the secure website eg. https://abc.com it shows "Navigation to the webpage was cancelled"

Navigation to the normal page works fine. But not to the https..

Even though i have the cerficate imported to my internetexplorer, when i navigate to site, itdoesnt ask me to sign/verify that cerficate.
please help!!
prad9  Wednesday, September 02, 2009 12:54 AM
Hi prad9,

Sorry for the late relpy. You can change the target platform of the project to x86. The WebBrowser control's underlying is a ActiveX control which would not work normally when we target the project to Any CPU or x64.

Let me know if this does not help.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, September 09, 2009 12:09 PM
Hi Aland Li,

I am working on x86 machine with windows XP operating system. Not sure what to do?
prad9  Wednesday, September 09, 2009 8:40 PM
Hi prad9,

Thanks for your reply and provide more information about your machine. What I mean is change the target platform of the project. The thread below shows how to do that, please pay attention to JohnWein's reply.
http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/d4fa83dc-eed1-4ead-96a1-78bbd9ba6d3a/.

Since your machineis of type x86, it is mostly of no use. You said: i have the cerficate imported to my internetexplorer, when i navigate to site, itdoesnt ask me to sign/verify that cerficate. Did you meet the same error when you had done this? Do you try to open the website via the WebBrowser directly? Could you let me know the version of the Internet Explorer?

Regards,
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Thursday, September 10, 2009 2:28 AM
Hi prad9,

Could you check the items below and let me know the answers:
1. Open the web site via other type of web browsers.
2. Open the web site on other'smachines.

Based on my test results, I cannot open it via IE or firefox. So we need to check the web site. We need to know if the issue is caused by the browser of the web site. By the way, I have visited some sites to buy a book and the sites are also of type https, it works fine.

Let me know if this helps or not.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Thursday, September 10, 2009 2:44 AM
Hi Aland,

I could able to view the website in the internet explorer 8(It asks me choose the certificate that was installed inthe explorer), then when i selected the cerficate and said ok, It displays the page fine.This behavious is not happenning in the Chorme and Firefox 3.5. Both of them gives error Page Cannot be Displayed.

When i am using the same website inthe web Browser control it doesnt ask me to choose the cerficate that was installed in the explorer and shows me the error Navigate to webpage was cancelled.

Here are my detail system details:

Windows Professional XP SP3, x86 bit version

Internet Exploper 8

Working on .Net Framework 2.0

sample website that i am woking: https://www.bestpractice.org.nz/newlook.asp?PMS=MyPractice&nhi=BCA2115&pd_dob=19780101&pd_gms=A1&pd_name_family=Simpson&pd_name_first=Tom&pd_ethnicity=12&pd_gender=Male&pd_address1=&pd_address2=&pd_address3=

if you click on this link it ask you to choose the cerficate. if selected, directs you to site.

Not sure why this is not working on x86 based machines. I have tried pointing target CPU to any cpu and x86 still no luck.

prad9  Friday, September 11, 2009 12:51 AM

You can use google to search for other answers

Custom Search

More Threads

• show time
• {SOLVED} how to know if item is selected in ListView
• I can't reach a program with using keyboard
• Resize a form which has been added to a split container panel.
• How to create a control LIKE the property window on VS.net
• Multithread output display
• Application has generated an exception that could not be handled.
• make DSOFramer object either not visible or transparent
• Pop-up or not Pop-up....this is the problem !
• Change ToolStrip BackgroundImage resource programmatically