This is a migrated thread and some comments may be shown as answers.

Exception with 'Telerik.Web.UI.ExternalScriptHelper'

4 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
christophe
Top achievements
Rank 1
christophe asked on 01 Dec 2014, 11:49 AM
Hi,

I have many error with the constructor of 'Telerik.Web.UI.ExternalScriptHelper'.
I can not reproduce this error in local, and we only have it from time to time in production
So I need your help to understand what could cause that.

In my call stack I have this.
This call stack was created with DebugDiag v2.0

[[GCFrame]][[PrestubMethodFrame] (Telerik.Web.UI.ExternalScriptHelper.ResolveSecurePath)] Telerik.Web.UI.ExternalScriptHelper.ResolveSecurePath(System.String)Telerik.Web.UI.RadScriptManager.OnResolveScriptReference(System.Web.UI.ScriptReferenceEventArgs)+19dSystem_Web_Extensions_ni!System.Web.UI.ScriptManager.RegisterScripts()+10fSystem_Web_Extensions_ni!System.Web.UI.ScriptManager.OnPagePreRenderComplete(System.Object, System.EventArgs)+c8[[MulticastFrame] (System.EventHandler.Invoke)] System.EventHandler.Invoke(System.Object, System.EventArgs)System_Web_ni!System.Web.UI.Page.OnPreRenderComplete(System.EventArgs)+aa368eSystem_Web_ni!System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)+e58System_Web_ni!System.Web.UI.Page.ProcessRequest(Boolean, Boolean)+a0System_Web_ni!System.Web.UI.Page.ProcessRequest()+5bSystem_Web_ni!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)+f0ASP.catalog_learner_home_aspx.ProcessRequest(System.Web.HttpContext)+9System_Web_ni!System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+257System_Web_ni!System.Web.HttpApplication.ExecuteStep(IExecutionStep, Boolean ByRef)+abSystem_Web_ni!System.Web.HttpApplication+PipelineStepManager.ResumeSteps(System.Exception)+511System_Web_ni!System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, System.AsyncCallback)+72System_Web_ni!System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)+269System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)+411System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)+2bSystem_Web_ni!DomainNeutralILStubClass.IL_STUB(Int64, Int64, Int64, Int32)+24System_Web_ni!DomainNeutralILStubClass.IL_STUB(IntPtr, System.Web.RequestNotificationStatus ByRef)+4b[[NDirectMethodFrameStandalone] (System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion)] System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatusByRef)System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)+540System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)+2bSystem_Web_ni!DomainNeutralILStubClass.IL_STUB(Int64, Int64, Int64, Int32)+24[[ContextTransitionFrame]]


Exception Type   MessageStack TraceRemote Stack Trace34System.TypeInitializationException   Une exception a été levée par l'initialiseur de type pour 'Telerik.Web.UI.ExternalScriptHelper'.    Remote Stack Trace not available


In this Dump I have also some other error.
Telerik.Web.UI.ConfigurationSettingMissingException   1   <none>   Telerik.Web.UI.ExternalScriptHelper..cctor()
System.OutOfMemoryException   1   <none>   Telerik.Web.UI.ExternalScriptHelper..cctor()
   System.StackOverflowException   1   <none>   Telerik.Web.UI.ExternalScriptHelper..cctor()
   System.ExecutionEngineException   1   <none>   Telerik.Web.UI.ExternalScriptHelper..cctor()
   System.Threading.ThreadAbortException   2   <none>   Telerik.Web.UI.ExternalScriptHelper..cctor()
   

4 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 01 Dec 2014, 02:37 PM

Hi Christophe,

Can you confirm the version you are using? I am asking this because a similar issue is fixed in the summer and you should not experience it with the latest release (Q3 2014 at present). Thus, I would advise upgrading to that version.

Another common reason for a similar problem is when serving external files (not embedded in assembly) with the RadScriptManager, the folder which contains these files should be specified in the web config file as explained here: http://www.telerik.com/help/aspnet-ajax/scriptmanager-combine-scripts.html and in case this registration is missing, you can get such errors.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
christophe
Top achievements
Rank 1
answered on 02 Dec 2014, 10:01 AM
Hi Marin,

Thank for your response. We use release Q1 2014.
We don't reference script in web.config because we need dynamic script.
So we use either C# code (ex RadScriptManager.RegisterClientScriptInclude) or with a RadCodeBlock.
Do you think this can create a bug ?
Update to the Q3 release is heavy work for us. We need to verified all screen are always compatible, and may be adapt the code. So, we need to be sure that this bug is fixed in this release before.

Regards,
0
Marin Bratanov
Telerik team
answered on 03 Dec 2014, 01:16 PM

Hello,

Without being able to observe the problem I cannot be completely certain what it is and what causes it. Thus, I cannot confirm whether creating scripts dynamically will cause the same problem I was referring to.

What I can suggest, is giving upgrading a very quick test - simply change the assemblies and test a page that you know causes this problem. If it does not manifest again, then it is a bug that has been fixed in a later version and upgrading is, most likely, the single option. 

It is also possible that this is a false positive - we may be throwing an unnecessary exception, which is then catched. Nevertheless, the DebugDiag tool still catches it and reports it to you. We have had one report about such behavior a few months ago.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
christophe
Top achievements
Rank 1
answered on 09 Dec 2014, 09:58 AM
Hi,

Ok, I will try with the last version.
Thanks for your help.
Tags
General Discussions
Asked by
christophe
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
christophe
Top achievements
Rank 1
Share this question
or