Error when trying to run F# HTML Parser

New F# program with this line of code
let results = FSharp.Data.HtmlDocument.Load("")
But I get a MissingMethodException
Method not found: 'FSharp.Data.HtmlDocument FSharp.Data.HtmlDocument.Load(System.String, Microsoft.FSharp.Core.FSharpOption`1)'.

Code runs ok in VSCode, Am I missing something ?
Seems like it is having some sort of issue with the optional parameter.


  • You need to add a reference to the FSharp.Data nuget package.
  • Sorry I should have been more explicit. I've added the FSharp.Data nuget, then added "open FSharp.Data" to the head of the file.
    Tried on 3 different machines
    Runs without error in VSCode or VStudio...
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!