Welcome Guest
Login Register
 
Script controls may not be registered before PreRender.
 
1 Reply's, Recent Post by Tech on 2/20/2017 10:29:16 PM
   

Previous Thread     Next Thread

Tech
9 Points
51 Posts
Guest Reply      Reply            Report Abuse
Script controls may not be registered before PreRender.
2/20/2017 10:27:38 PM

Script controls may not be registered before PreRender.

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


 [InvalidOperationException: Script controls may not be registered before PreRender.]
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +348745
   System.Web.UI.UpdateProgress.OnPreRender(EventArgs e) +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842V


Post Your Comment        

Tech
9 Points
51 Posts
Guest Reply      Reply            Report Abuse
Re: Script controls may not be registered before PreRender.
2/20/2017 10:29:16 PM

one of the reason for above error having below method in .cs code in ASP.NET page.

 Dispose();

If you get that error, make sure not Dispose() method call in page.


Post Your Comment        
   Previous Thread     Next Thread
Guest Reply