无法加载文件或程序" Microsoft.Web.Extensions" [英] Could not load file or assembly "Microsoft.Web.Extensions"

查看:216
本文介绍了无法加载文件或程序" Microsoft.Web.Extensions"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承一个asp.net 3.5解决方案,我无法得到它的工作。我不断收到错误:

I've inherited an asp.net 3.5 solution and I'm having trouble getting it working. I keep receiving the error:

无法加载文件或程序集Microsoft.Web.Extensions,版本= 1.0.61025.0,文化=中性公钥= 31bf3856ad364e35或它的一个依赖。该系统找不到指定的文件。 (C:\\ MYDIR \\ web.config行54)

Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (c:\mydir\web.config line 54)

现在,我已经围绕谷歌良好的外观,并已经看到,人们纷纷表示要运行一个简单的搜索和替换变Microsoft.Web。到的System.Web。的作为命名空间已经改变了,但我有没有在所有的运气。

Now, I've had a good look around Google and have seen that people have said to run a simple search and replace to change "Microsoft.Web." to "System.Web." as the namespaces have changed, but I'm having no luck at all.

以上是Web.config文件的相关行

These are the pertinent lines of the Web.config file

<pages validateRequest="True">
    <controls>
        <add tagPrefix="asp" namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add tagPrefix="asp" namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </controls>
    <tagMapping>
        Line 54: <add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="Microsoft.Web.UI.Compatibility.CompareValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="Microsoft.Web.UI.Compatibility.CustomValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RangeValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RegularExpressionValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RequiredFieldValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="Microsoft.Web.UI.Compatibility.ValidationSummary, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </tagMapping>
</pages>

我想AP preciate任何洞察到这一点,因为我真的很挣扎。

I would appreciate any insight into this, as I'm really struggling.

由于提前,

戴夫

推荐答案

事实证明,我已经得到了previous开发商不正确的web.config文件。投入让我的新的编译和构建解决方案。

As it turns out, I had been given an incorrect web.config by the previous developers. Putting the new one in allowed me to compile and build the solution.

一旦部署到服务器上,我已经安装了AJAX的ASP.NET 2.0,但仍收到错误引用microsoft.web.extensions等。

Once deployed to the server, I had installed the AJAX for ASP.NET 2.0, but still received errors referencing microsoft.web.extensions etc.

解决方案又令版本。

整个应用程序似乎对ASP.NET Beta 2的二进制AJAX上方内置。取出2.0和重新安装测试版2 MSI后,一切都射进行动。

The whole application seems to be built on top of the AJAX for ASP.NET Beta 2 binary. After removing the 2.0 and re-installing the beta 2 MSI, everything fired into action.

感谢大家的指针

这篇关于无法加载文件或程序&QUOT; Microsoft.Web.Extensions&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆