Writing an app using the nuget version of the FSharp.Data.TypeProviders fails with the error:
error FS3031: The type provider 'C:\temp\wsdlrepro - Copy\packages\FSharp.Data.TypeProviders.5.0.0.3-beta\lib\net40\FSharp.Data.TypeProviders.dll' reported an error: Assembly attribute 'TypeProviderAssemblyAttribute' refers to a designer assembly 'C:\temp\wsdlrepro - Copy\packages\FSharp.Data.TypeProviders.5.0.0.3-beta\lib\net40\FSharp.Data.TypeProviders.dll' which cannot be loaded or doesn't exist. Could not load file or assembly 'file:///C:\temp\wsdlrepro - Copy\packages\FSharp.Data.TypeProviders.5.0.0.3-beta\lib\net40\FSharp.Data.TypeProviders.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
The program throws a FileLoadException.
With this message:
{"An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information."}
The fixes are to, either:
- enable the loadFromRemoteSources switch
- manually unblock the file
- Use Assembly.UnsafeLoadfrom
Writing an app using the nuget version of the FSharp.Data.TypeProviders fails with the error:
The program throws a FileLoadException.
With this message:
{"An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information."}
The fixes are to, either: