【问题标题】:Why would ASP.NET not be able to find asp:UpdateProgress?为什么 ASP.NET 无法找到 asp:UpdateProgress?
【发布时间】:2009-05-14 15:10:08
【问题描述】:

基本上,我正在从 1.1 升级到 .NET 3.5 SP1,并用较新的 .NET 3.5 版本替换旧的 .NET 1.1 WebForms 应用程序。

  • 我运行 .net 3.5 sp1 安装程序 (dotnetfx35setup.exe)
  • 我运行 Crystal 报告可再发行安装程序
  • 我设置了一个新的应用程序池
  • 我使用包含新文件的目录、使用 ASP.NET 2.0 和新应用程序池建立了一个新网站

我已经在 5 个不同(相对)相同的盒子上完成了完全相同的过程,并且除了当前的盒子之外,它对每个盒子都有效。

当我尝试导航到主页时出现错误:Parser Error Message: unkown server tag asp:UpdateProgress 你可以在这里看到完整的错误:http://pastebin.com/f460e58bd

由于 UpdateProgress 在 System.Web.Extensibility.dll 中,我检查了 GAC - 它没有安装。所以我尝试将它手动移动到应用程序 bin 目录中 - 这并没有解决它。然后我尝试将 gacutil 复制到机器并手动将文件安装到 GAC,安装成功但我的应用程序仍然失败,我没有想法。

有人知道我还能尝试什么吗?

服务器是 Windows 2003 Server SP1。

【问题讨论】:

    标签: .net asp.net installation upgrade server-error


    【解决方案1】:

    尝试将其添加到 web.confg 的底部:

    <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>
    

    如果它有效,则说明您的页面在寻找特定旧版本的 System.Web.Extensions DLL 时出现问题。重新编译引用 System.Web.Extensions 的 DLL 也应该可以修复它。

    还有here's the much more common error people see,以及更好的 Google 搜索,因为 ScriptManager 通常是第一个解析的 System.Web.Extensions 控件。

    【讨论】:

    • +100 万!您的评论让我检查了我的 web.config。由于某种原因,我的网络配置文件被复制为空白
    【解决方案2】:

    您是否正确设置了页面/控件上的注册指令?是否将 TagPrefix 属性设置为“as”?

    【讨论】:

    • 好点,我没有注意到它引用为:UpdateProgress 而不是 asp:UpdateProgress 的问题。
    猜你喜欢
    • 2021-11-15
    • 2012-03-24
    • 2017-02-02
    • 2017-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多