2012-01-04 16 views
5

जैसा कि शीर्षक इंगित करता है, मैंने हाल ही में एक एएसपी.NET 3.5 एप्लिकेशन अपडेट किया है जिसमें अपडेटपैनल्स और इसी तरह की AJAX प्रौद्योगिकियां ASP.NET 4.0 है। दुर्भाग्यवश, UpdatePanels और काम नहीं करते हैं और पूर्ण पृष्ठ पोस्टबैक यह सब दक्षिण में जाता है।अपडेट किया गया एएसपी.नेट 3.5 से 4.0 -> Sys.WebForms.PageRequestManager अपरिभाषित

Web.config फ़ाइल

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

Javascript क्रियान्वयन पर क्रोम में त्रुटि:

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

क्या है कि वहाँ मैं गलत किया है हो सकता है? धन्यवाद!

उत्तर

0

... और मैंने अपडेटपेनल को प्रतिस्थापित करके और स्क्रिप्टिंग प्रबंधकों को हटाकर इसे हल कर लिया है।

4

मुझे हाल ही में समस्या हो रही थी क्योंकि मैं एक पुरानी परियोजना को अद्यतन कर रहा था और ऊपर दिए गए चरणों का पालन करता था लेकिन यह अभी भी मुझे एक ही त्रुटि दे रहा था। मैंने पाया कि मुझे web.config फ़ाइल में एक पंक्ति को अपडेट करने की आवश्यकता है जो इसे ठीक करता है।

मैं बदल दिया है:

<xhtmlConformance mode="Legacy"/> 

रहे हैं:

<xhtmlConformance mode="Transitional"/> 
3

सेट EnablePartialRendering="false" ScriptManager में

+1

की कोशिश की सभी अन्य समाधान है, लेकिन यह मेरे लिए काम किया .. धन्यवाद :) – Gaurravs

संबंधित मुद्दे