2012-01-04 13 views
5

Como indica el título, recientemente actualicé una aplicación ASP.NET 3.5 que contiene UpdatePanels y tecnologías AJAX similares a ASP.NET 4.0. Desafortunadamente, los paneles de actualización no funcionan más y las devoluciones de página completas hacen que todo vaya hacia el sur.Actualizado ASP.NET 3.5 a 4.0 -> Sys.WebForms.PageRequestManager no está definido

Web.config-archivo

<?xml version="1.0"?> 
<configuration> 
    <configSections> 
     <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling"/> 
     <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging"/> 
     <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data"/> 
    </configSections> 
    <system.net> 
     <mailSettings> 
      <smtp> 
       <network host="localhost"/> 
      </smtp> 
     </mailSettings> 
    </system.net> 
    <system.web> 
     <!-- 
      The <authentication> section enables configuration 
      of the security authentication mode used by 
      ASP.NET to identify an incoming user. 
     --> 
     <authentication mode="Forms"> 
      <forms loginUrl="~/Login.aspx" name=".ASPXFORMSAUTH" defaultUrl="~/Administration/SystemEvents.aspx"/> 
     </authentication> 
     <!-- 
      The <customErrors> section enables configuration 
      of what to do if/when an unhandled error occurs 
      during the execution of a request. Specifically, 
      it enables developers to configure html error pages 
      to be displayed in place of a error stack trace. --> 
     <customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx"> 
      <error statusCode="401" redirect="~/Unauthorized.aspx"/> 
     </customErrors> 
     <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web> 
    <system.webServer> 
     <validation validateIntegratedModeConfiguration="false"/> 
    </system.webServer> 
</configuration> 

error de Javascript cuando se ejecuta en Chrome:

Uncaught TypeError: Object function Function() { [native code] } has no method '_registerScript' 
Uncaught TypeError: Cannot read property 'PageRequestManager' of undefined 

Qué hay de que yo podría haber hecho mal? ¡Gracias!

Respuesta

0

... y lo he solucionado reemplazando UpdatePanels y quitando los gestores de scripting.

4

Estaba teniendo problemas con esto recientemente porque estaba actualizando un proyecto anterior y seguí los pasos anteriores, pero igual me estaba dando el mismo error. Descubrí que necesitaba actualizar una línea en el archivo web.config que lo arregló.

cambié:

<xhtmlConformance mode="Legacy"/> 

a:

<xhtmlConformance mode="Transitional"/> 
3

Conjunto EnablePartialRendering="false" en ScriptManager

+1

intentado todos otra solución, pero esto funcionó para mí .. gracias :) – Gaurravs