本文介绍了Ajax控制工具包:FSharp.Core错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Ajax控件工具包(ToolkitScriptManager)在Visual Web Developer 2010中运行应用程序时遇到一些麻烦。

I've experiencing some troubles when running applications in Visual Web Developer 2010 with the Ajax Control Toolkit (ToolkitScriptManager).

在运行Ajax Control Toolkit时,经常发生错误解决方案:

Many times an error occours when I run the solution:

Could not load file or assembly 'FSharp.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
O sistema não pode encontrar o arquivo especificado.
(System couldn't find the specified file).

如果我选择继续,则必须重新加载网页,然后该页面才能正常工作,尽管ajax控件(手风琴)未正确呈现(我认为)。

If I choose "Continue", I must to reload the webpage and then the page seems to work, despite with the ajax controls (accordion) not properly rendered (I think).

网页中显示的错误(localhost asp.net开发服务器):

Error shown in webpage (localhost asp.net development server):

Line 13: <body>
Line 14:     <form id="form1" runat="server">
Line 15:     <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
Line 16:     </asp:ToolkitScriptManager>
Line 17:

我什至在Visual Studio 2010中添加了FSharp安装,但没有任何更改。我在部署站点的IIS中也出现了此问题。

I even added the FSharp installation in visual studio 2010, but nothing changes. This problem occours also in IIS, where I deploy the site.

这是一个测试页面,只有toolkitscriptmanager和一个手风琴控件。

It's a test page, there is only the toolkitscriptmanager and an accordion control.

功能:Visual Web Developer 2010版本10.0.30319.1,.NET 4.0.30319 RTMRel,Ajax控制工具包3.5.40412.0(也就是IIS 7.5.7600.16385)。

Features: Visual Web Developer 2010 version 10.0.30319.1, .NET 4.0.30319 RTMRel, Ajax Control Toolkit 3.5.40412.0 (Also IIS 7.5.7600.16385).

这是怎么回事?我在哪里可以找到FSharp.Core(或注册它),为什么有时系统不要求我提供?

What's going on? Where can I find FSharp.Core (or register it) and why, sometimes, the system don't ask me for?

推荐答案

最后,我找到了解决此问题的方法:

Finally, I've found the solution for this problem:

在部署机器上安装redist(F#运行时)为我解决了这个问题。

Installing the redist (F# runtime) on the deployment machine solved the problem for me.

这篇关于Ajax控制工具包:FSharp.Core错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 04:07