基类包括字段“ScriptManager1',但其类型(System.Web.UI.ScriptManager)不与对照的类型兼容(System.Web.UI.ScriptManager) [英] The base class includes the field 'ScriptManager1', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager)

查看:127
本文介绍了基类包括字段“ScriptManager1',但其类型(System.Web.UI.ScriptManager)不与对照的类型兼容(System.Web.UI.ScriptManager)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的基类包括字段ScriptManager1,但其类型(System.Web.UI.ScriptManager)是不是与控制(System.Web.UI.ScriptManager)的类型兼容。

"The base class includes the field 'ScriptManager1', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager)."

任何人都碰到这个错误来了?

Anyone else come across this error?

推荐答案

我设法加入这web.config文件来解决它:

I managed to fix it by adding this to web.config:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
        </dependentAssembly>
        <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
        </dependentAssembly>
    </assemblyBinding>
</runtime>

我相信它迫使.NET运行时使用这些组件的新版本。

I believe it forces the .net runtime to use the new versions of those assemblies.

这篇关于基类包括字段“ScriptManager1',但其类型(System.Web.UI.ScriptManager)不与对照的类型兼容(System.Web.UI.ScriptManager)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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