C# raise An exception of type 'System.MissingMethodException' from a F# library

那年仲夏 提交于 2019-12-24 17:04:14

问题


I made c# project using GeckoFx and I'm calling a f# function in a dll I made.

The c# code which calls the function is:

var myList = geckoWebBrowser1.ActiveNetworkChannelUrls;
hist.Add(geckoWebBrowser1.Url.ToString());
resCoo = geckoWebBrowser1.Document.Cookie;
myHTML = geckoWebBrowser1.Document.Body.OuterHtml;
// gets the ISIN list from html table
var myISINSt = HTMLFuncs.GetISINStocks(myHTML);

and the exception is rised on the last row, and is:

An exception of type 'System.MissingMethodException' occurred in CSGeckoTest01.exe but was not handled in user code

Additional information: Impossibile trovare il metodo 'System.Collections.Generic.IEnumerable`1 FSharp.Data.HtmlNodeModule.descendants(Boolean, Microsoft.FSharp.Core.FSharpFunc`2, FSharp.Data.HtmlNode)'.

I'm sure the function is in the library (at least VS Object Browser can see it), I tested it in FSI and it works.

I found a similar problem in:

stackoverflow.com/questions/22608519/fsharp-data-system-missingmethodexception-when-calling-freebase-provider-from

and followed the solution, but it doesn't work for me.

Please, can someone help?

Thanks for your attention.

来源:https://stackoverflow.com/questions/34134858/c-sharp-raise-an-exception-of-type-system-missingmethodexception-from-a-f-lib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!