Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
744 views
in Technique[技术] by (71.8m points)

f# - Could not load file or assembly FSharp.Core, Version=4.0.0.0

I'm trying to deploy a web application which uses F# 4.0 on Windows Server 2008.

It works on my computer where VS2010 is installed but it doesn't work on the server. Everytime you open the page you'll get this error message:

Could not load file or assembly 'FSharp.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

I've installed .NET 4 using the web platform installer. F# PowerPack is installed too.

I found this page: http://connect.microsoft.com/VisualStudio/feedback/details/507202/error-in-working-with-f It suggests you to reinstall F#, but the link to download F# seems to be broken. And it might not be the same problem I have.

I've also tried to install Microsoft F# 2.0.0.0 since it's the only F# redistribution I could find. But it doesn't help at all.

Has anyone get something like this to work?

question from:https://stackoverflow.com/questions/3042253/could-not-load-file-or-assembly-fsharp-core-version-4-0-0-0

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You need to install the redist (F# runtime) on the deployment machine. See e.g.

http://msdn.microsoft.com/library/ee241127(VS.100).aspx (or http://msdn.microsoft.com/en-us/library/ee829875.aspx)

for info on how to have a VS project chain the installer. As you've found, the redist (located here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=5f0a79f8-925f-4297-9ae2-86e2fdcff33c&displaylang=en

) needs to be installed; FSharp.Core is not part of .NET, rather it is a separately installed component.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.7k users

...