问题
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