You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standard WMI interface works, but the type provider does not.
Repro steps
Given this code:
lettest()=typeLocal= WmiProvider<"localhost">letwmi= Local.GetDataContext ()for e in wmi.Win32_PnPEntity do
printfn "%s" e.Caption
At design time, there is no error and Intellisense works properly (Caption shows up in the suggestion list), however at compile time, there is this error:
Unexpected exception from provided type 'FSharp.Management.WmiProvider,MachineName="localhost"+ServiceTypes+Win32_PnPEntity' member 'GetMethods': The type provider 'FSharp.Management.DesignTime.WmiExtender' reported an error: Specified method is not supported.
However this works, if I use the low-level WMI interface:
letsrch=new ManagementObjectSearcher ("SELECT * FROM WIN32_PnPEntity")// etc...
As expected, the Captions are printed.
Related information
Operating system: Windows 10
Branch: 0.4.3 Master
.NET Runtime
The text was updated successfully, but these errors were encountered:
Description
Standard WMI interface works, but the type provider does not.
Repro steps
Given this code:
At design time, there is no error and Intellisense works properly (Caption shows up in the suggestion list), however at compile time, there is this error:
However this works, if I use the low-level WMI interface:
As expected, the Captions are printed.
Related information
The text was updated successfully, but these errors were encountered: