I am having the same issue but it just started occurring. I have vs2010 on another host that is not having this problem. I only get these errors in F# Interactive. Referencing from a project and compiling works just fine.

I should note that I've also attempted to redownload the assemblies and I've run vs2010 installation repair.

> #r @"C:\FSharp-PowerPack-4.0-Beta1/FSharp.PowerPack.dll";;

--> Referenced 'C:\FSharp-PowerPack-4.0-Beta1\FSharp.PowerPack.dll'

> String.split [' '] "this doesn't fail in a project however";;

Binding session to 'C:\FSharp-PowerPack-4.0-Beta1\FSharp.PowerPack.dll'...

error FS0193: Could not load file or assembly 'file:///C:\FSharp-PowerPack-4.0-Beta1\FSharp.PowerPack.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

error FS0193: Could not load file or assembly 'FSharp.PowerPack, Version=3.9.9.995, Culture=neutral, PublicKeyToken=a19089b1c74d0809' or one of its dependencies. The system cannot find the file specified.

By on 7/18/2009 11:20 AM ()

Thanks for the reply; at least I'm not the only person experiencing this.

Has anyone come up with a fix? I'm very new to F# so any hints as to how to get the powerpack working inside f# interactive would be much appreciated.

By on 7/20/2009 7:04 PM ()

Place the Powerpack.dll in the F# dll folder - on my pc 'c:\program files\Microsoft F#\v4.0\' - this way you can reference it by typing

#r "FSharp.PowerPack.dll"

[*** Note this only works (interactively) if your code is in a script (*.fsx) file ***]

and of course you'll need the following statement as well ..

open Microsoft.FSharp.Control

check out ...

[link:tomasp.net]

Great webcast series - his ebook is well worth a read as well

Happy Coding

By on 9/6/2009 1:56 PM ()

This worked for me, though I dropped them in "C:\Program Files (x86)\FSharp-1.9.4.15\bin". This was after installing VS 2010 Beta 1.

By on 9/15/2009 12:09 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper