Kindly explain if the error below was a bugs on AJAX Control Toolkit or cause by what.
Error:
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. --> System.NotSupportedException: This page is missing a HtmlHead control which is required for the CSS stylesheet link that is being added. Please add . at AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Control control) in d:\E\AjaxControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder.cs:line 229 at AjaxControlToolkit.ScriptControlBase.OnPreRender(EventArgs e) in d:\E\AjaxControlToolkit\Release\AjaxControlToolkit\ExtenderBase\ScriptControlBase.cs:line 270 at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -- End of inner exception stack trace -- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.file_utilities_usermaster_edituser_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Thank you in advance,Zed
Simple answer looks like no.
From the error it seems you have added a CSS without a head tag..i.e. ina control. And to register that CSS directly as you intend to do...use
AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Control control)
Hope that helps..
Thank you for your immediate response. My assumptions is that you're correct however the only thing that keeps me on thinking is that I did not changed or modify anything on the page and even the CSS file. The page is working fine from the beginning and suddenly I just received this error. Its kind a weird you know.
Thanks again,
Zed
Hi Zed,
If you want me to investigate, Ia m more then happy to do so, but for that you will have to put the code here , else if its just one occasion, try replicating it. Are you using CSS control adapter by any chance.
If the answer above helped do not forget to mark so.
Thanks
No comments:
Post a Comment