Try to specify a default web proxy as follows:
open System.Net // for WebProxy etc.
open Microsoft.FSharp.Data.TypeProviders
// put here actual proxy address
let proxy = new WebProxy("http://192.168.1.1:3128") :> IWebProxy
// put here your credentials if needed
proxy.Credentials <- NetworkCredential("proxy_user", "password")
// set up a default proxy
WebRequest.DefaultWebProxy <- proxy
// here the default proxy will be used
type db = ODataService<"http://ebayodata.cloudapp.net/">
Or you can try to use a proxy which was specified in IE as follows:
WebRequest.DefaultWebProxy <- WebRequest.GetSystemWebProxy()
WebRequest.DefaultWebProxy.Credentials <- CredentialCache.DefaultNetworkCredentials
If you have an error while compiling then this is probably because of F# compiler (Fsc.exe) can't connect to the proxy server. You can fix this by modifying Fsc.exe.config, just add the following text under the configuration section:
<system.net>
<defaultProxy useDefaultCredentials="true" />
</system.net>
Ebay.Credentials <- System.Net.NetworkCredential("user", "pass", "domain")- Robert Jeppesen