本文介绍了无法加载文件或程序集FSharp.Core,版本= 4.0.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows Server 2008上部署使用F#4.0的Web应用程序.

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

它可以在安装了VS2010的计算机上运行,​​但不能在服务器上运行.每次打开页面时,您都会收到以下错误消息:

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:

我已经使用Web平台安装程序安装了.NET 4.也安装了F#PowerPack.

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

我找到了此页面: http://connect.microsoft.com/VisualStudio/feedback/details/507202/error-in-working-with-f 它建议您重新安装F#,但是下载F#的链接似乎已损坏.而且可能不是我遇到的同样的问题.

I found this page: http://connect.microsoft.com/VisualStudio/feedback/details/507202/error-in-working-with-fIt 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.

我还尝试安装Microsoft F#2.0.0.0,因为它是我可以找到的唯一F#重新分发版本.但这根本没有帮助.

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.

有人能像这样工作吗?

推荐答案

我需要FSharp.Core4.0.0版本,因此我通过Nuget将其安装在Visual Studio 2010中:
http://nuget.org/packages/FSharp.Core

I needed version 4.0.0 of FSharp.Core, so I installed it in my Visual Studio 2010 via Nuget:
http://nuget.org/packages/FSharp.Core

或在程序包管理器控制台中运行以下命令:
PM> Install-Package FSharp.Core

然后发布项目并上传FSharp.Core.dll

Or run the following command in the Package Manager Console:
PM> Install-Package FSharp.Core

Then publish the project and upload FSharp.Core.dll

这篇关于无法加载文件或程序集FSharp.Core,版本= 4.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-04 16:34