【问题标题】:ajaxtoolkit controls won't allow page to loadajaxtoolkit 控件不允许页面加载
【发布时间】:2013-06-11 16:11:26
【问题描述】:

我在我的项目中安装了 ajaxtoolkit,一切正常。

突然间,当我添加一个新的 aspx web 表单并向其添加一些 ajaxtoolkit 控件时,页面将无法加载。 出现以下错误:

“找不到任何适合指定区域性或中性区域性的资源。确保在编译时AjaxControlToolkit.Properties.Resources.NET4.resources 已正确嵌入或链接到程序集“AjaxControlToolkit”中,或者所需的所有附属程序集都是可加载的并完全签名。”

我猜这与 .NET 框架有关...

我的网络配置文件如下所示:

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>

  <!--connection string-->
    <connectionStrings>
          <add name="igroup20_test2ConnectionString" connectionString="Data Source=Media.ruppin.ac.il;Initial Catalog=igroup20_test2;User ID=igroup20;Password=***" providerName="System.Data.SqlClient"/>
    </connectionStrings>

    <system.web>

    <!--define membership-->
    <membership defaultProvider="CustomizedProvider">
      <providers>
        <add name="CustomizedProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="igroup20_test2ConnectionString" applicationName="ScottsProject" minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0"/>
      </providers>
    </membership>

    <!--define roles-->
        <roleManager enabled="true" defaultProvider="CustomizedRoleProvider">
            <providers>
                <add name="CustomizedRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="igroup20_test2ConnectionString" applicationName="/"/>
            </providers>
        </roleManager>

    <!--define profile properites-->
    <profile defaultProvider="CustomProfileProvider" enabled="true">
      <providers>
        <add name="CustomProfileProvider"
             type="System.Web.Profile.SqlProfileProvider"
             connectionStringName="igroup20_test2ConnectionString"
             applicationName="ScottsProject" />
      </providers>

      <!-- Define the properties for Profile... -->
      <properties>
        <add name="prof" type="String" serializeAs="String" />
      </properties>
    </profile>


        <authentication mode="Forms"/>

        <compilation debug="true" targetFramework="4.0">
      <!--<httpRuntime targetFramework="4.5"/>-->
            <assemblies>
                  <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                  <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                  <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
    </compilation>


    </system.web>

 </configuration>

【问题讨论】:

    标签: c# asp.net


    【解决方案1】:

    确保您已将 ScriptManager 添加到您的 Masterpage - 或标准 Web 表单(如果不使用 MasterPage)。

    这需要进入你的&lt;form runat="server"&gt;标签

    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-20
      • 2013-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-01
      • 1970-01-01
      相关资源
      最近更新 更多