问题描述
我正在尝试在 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:
无法加载文件或程序集FSharp.Core,版本=4.0.0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a"或其依赖项之一.系统找不到指定的文件.
我已经使用 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.
有人做过这样的事情吗?
Has anyone get something like this to work?
推荐答案
我需要 FSharp.Core
的 4.0.0
版本,所以我将它安装在我的 Visual Studio 中2010 年通过 Nuget:
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
或者在包管理器控制台中运行以下命令:
下午>安装包 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!