Ajax Control Toolkits does not run on the Azure Web App

1

I have a WebForms .aspx application with Ajax controls from the Ajax Control Toolkits component, which runs perfectly on the local machine! But when I publish to the Azure Web App server, the controls do not work even by referencing the Web.config and copying the Dll in the bin folder does not.

On the client side I get the following error:

    Uncaught ReferenceError: 
WebForm_TexBoxKeyHandler is not defined at 
HTMLInputElement.onkeypress

Web.config:

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

  <connectionStrings>
    <add name="MyConnectionString" connectionString="Data Source=####,1433;
         Initial Catalog=####;
         Integrated Security=False;
         TrustServerCertificate=False;
         User ID=####;
         Password=####;
         Connection Timeout=30" />
  </connectionStrings>

  <system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="500000000" />
      </webServices>
    </scripting>
  </system.web.extensions>

  <system.web>
    <customErrors mode="Off"></customErrors>
  </system.web>

  <system.web>
    <authentication mode="Forms">
      <forms loginUrl="~/Autenticacao/Login.aspx" 
             defaultUrl="~/Views/PesquisaProcesso.aspx" timeout="1440" />
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>

  </system.web>
  <location path="~/Autenticacao/Login.aspx">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>
  <location path="~/Autenticacao/Registrar.aspx">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>
  <location path="Autenticacao">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>
  <system.web>
    <membership>
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" 
             connectionStringName="MyConnectionString" enablePasswordRetrieval="true" 
             enablePasswordReset="true" requiresQuestionAndAnswer="false" 
             requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" 
             minRequiredPasswordLength="3" minRequiredNonalphanumericCharacters="0" 
             passwordAttemptWindow="10" passwordFormat="Clear" applicationName="/" />
      </providers>
    </membership>
    <profile>
      <providers>
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" 
             connectionStringName="MyConnectionString" applicationName="/" />
      </providers>
    </profile>
    <roleManager enabled="true">
      <providers>
        <clear />
        <add connectionStringName="MyConnectionString" 
             applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
        <add applicationName="/" name="AspNetWindowsTokenRoleProvider" 
             type="System.Web.Security.WindowsTokenRoleProvider" />
      </providers>
    </roleManager>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" maxRequestLength="100000000" />
    <pages buffer="true" masterPageFile="~/Site.master" enableEventValidation="false">
      <controls>
        <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
      </controls>
    </pages>
    <identity impersonate="true" />
  </system.web>
  <system.web>
    <webServices>
      <protocols>
        <add name="HttpGet" />
        <add name="HttpPost" />
      </protocols>
    </webServices>
  </system.web>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" 
                type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, 
                Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.3.0, Culture=neutral, 
                PublicKeyToken=31bf3856ad364e35" warningLevel="4" 
                compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" 
                type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, 
                Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.3.0, 
                Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" 
                compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; 
                /optionInfer+" />
    </compilers>
  </system.codedom>
</configuration>

Reference on pages:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

Has anyone ever had the same problem?

    
asked by anonymous 22.05.2018 / 20:58

0 answers