FSharp.Data icon indicating copy to clipboard operation
FSharp.Data copied to clipboard

Http Utility does not load via #r

Open jskulavik opened this issue 10 years ago • 5 comments

The Http utility does not load from current repos. I receive the error that System.Net.CookieContainer is defined in an assembly that is not referenced, but I've referenced System.Net.

Here's my script code:

r ".\packages\FSharp.Data\lib\portable-net40+sl5+wp8+win8\FSharp.Data.dll"

r ".\packages\ExcelProvider\lib\ExcelProvider.dll"

open FSharp.Data open FSharp.ExcelProvider open System.Net

let retailSheet = Http.request("https://www.excel.com/worksheet.xlsx", silentHttpErrors = true)

jskulavik avatar Mar 31 '16 05:03 jskulavik

After doing a bit of trial and error, I've found that this only occurs when using Paket to load FSharp.Data. I'm not sure where to go next to identify the issue, Paket or here. Any idea @ovatsus or @tpetricek?

jskulavik avatar Apr 05 '16 02:04 jskulavik

Does it work if you use FSharp.Data.dll from "net40" version instead? (rather than the portable one?)

tpetricek avatar Apr 05 '16 11:04 tpetricek

With "net40" I get "not a valid assembly" which is very puzzling.

jskulavik avatar Apr 06 '16 04:04 jskulavik

Hmm, that is odd. What version of F# on what kind of OS/.Net/mono are you using?

tpetricek avatar Apr 06 '16 10:04 tpetricek

I'm on 4.1, Windows 10, .NET 4.0. I was able to get it running in fsi while ignoring the warnings, so I guess I'll close this issue and just live with the warnings. Thanks for the help @tpetricek, sorry raising an unproductive issue

jskulavik avatar Apr 07 '16 02:04 jskulavik