question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

empty result with AngleSharp 0.9.11

See original GitHub issue

I am using AngleSharp v0.9.11. Because our project is targeting .NET Framework 4.5.2. So the latest version of AngleSharp I can upgrade is 0.9.11. Now, with same code but the project with .NET 4.6 returns ok but not ok in project with .NET 4.5.2 private async Task<string> GetPageAsync() { string result = "ok"; var page = "https://www.esuperfund.com.au/bank-account/transaction-account/interest-rates/cba-transaction-account"; var config = Configuration.Default.WithDefaultLoader(); var doc = await BrowsingContext.New(config).OpenAsync(page); if (string.IsNullOrEmpty(doc.Body.InnerHtml)) result = "Not ok"; return result; }

I think there are some codes/libraries which make that web returns empty as I tested with other urls (e.g. stackoverflow.com) and all are ok. I don’t know what should I do to make it works for .NET 4.5.2 project.

Many thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
qnguyen12commented, Jul 23, 2019

Thanks, I added ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; and it works now.

0reactions
FlorianRapplcommented, Jul 23, 2019

Just another link for you to read (and the person in this post has a page that uses the same CA as esuperfund.com.au; GeoTrust): https://forums.asp.net/t/2145653.aspx?C+WebRequest+Could+not+create+SSL+TLS+secure+channel

Read more comments on GitHub >

github_iconTop Results From Across the Web

HtmlParser. Failed to load file or assembly
Opened in Visual Studio 2015. No result. Update-2. Installed "AngleSharp - 0.9.11". The error is gone. Update-3. Installed ...
Read more >
AngleSharp
This results in a duplication of the anchor tag. All in all those transformations are non-trivial. Tables are responsible for some edge cases....
Read more >
AngleSharp - Documentation
AngleSharp gives you great performance. Parse your favorite websites in practically no-time. Interactive DOM. The DOM exposed by AngleSharp is fully functional ...
Read more >
JSON Reader 1.0 · Developing Cross-Platform Apps
Създайте нов проект: Visual C# > Windows Universal > Blank App (Universal Windows). ... Json -Version 11.0.2 PM> Install-Package AngleSharp -Version 0.9.11.
Read more >
AngleSharp 1.0.4
AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found