|
-
Oct 12th, 2020, 07:43 AM
#1
Thread Starter
Member
VS2019 Json undefined when using Webbrowser
hi, im on Windows 7 64 Home, and hv IE11 64bit installed. When i manually use IE to browse to the website, all seems ok, but when i try to use VS2019 VB.Net Webbrowser to browse to the website, im getting the 2 'errors' below everytime and the site will not work even after pressing 'ok'. I suspect Webbrowser is using 'compatibility' mode(IE8 or something from some web search).
1) An error has occured in the script on this page
Error: 'JSON' is undefined
2) Security warning
Do you only want to view the webpage content that was delivered securely?
I put this on Form load - MessageBox.Show(WebBrowser1.Version.ToString) and it show it is using 11.0.9600
I just add a new VB.Net Windows project, add Webbrowser1 and use a Button to execute it-
WebBrowser1.Navigate("https://www1.gtr368.com/")
Hv add this to registry but still the same:
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/x-json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00
Thank you,
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|