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

Intermittent SYS not defined error

9 Answers 62 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chris Trina
Top achievements
Rank 1
Chris Trina asked on 25 Jan 2010, 10:31 PM

I have a production application that users intermittently report getting a SYS not defined error on, and the radEditor fails to paint.  I know there are various reasons for getting this error, but most of them are all setup related and would not apply for an intermittent occurrence.  Any hints on how to track this down?  It is not related to the user’s computer because everything is fine most of the time for the users who have reported this issue.

9 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 28 Jan 2010, 11:29 AM
Hi Chris,

Please, see the following article, which provides suggestions on how to solve the 'Sys' is undefined error: General Troubleshooting.

Problem. 1:

Error message "Microsoft JScript runtime error: 'Sys' is undefined"

Suggested solution:

This error occurs when you have added a control from RadControls for ASP.NET AJAX but your application is not configured to use ASP.NET AJAX. To fix it you need to follow the steps described at http://ajax.asp.net/docs/ConfiguringASPNETAJAX.aspx (check the topic called Adding ASP.NET AJAX Configuration Elements to an Existing Web Site)

Another possible reason for this error (and the solution for it) is explained by the ASP.NET QA team here:

http://weblogs.asp.net/asptest/archive/2008/10/06/asp-net-ajax-and-http-handlers-a-cautionary-tale.aspx


Problem 2:

Using RadControls with RadScriptManager on your login page throws one of the following errors:

  • ASP.NET Ajax client-side framework failed to load
  • 'Sys' is undefined
  • “Telerik.Web.UI” is undefined

Cause:

As the website denies access to all pages to unauthorized users, access to the Telerik.Web.UI.WebResource.axd handler is unauthorized. This causes the handler to serve the content of the login page instead of the combined scripts, hence the error.

Suggested solution:

Add a <location> section to the application configuration file to allow access to Telerik.Web.UI.WebResource.axd to all users, like: 

[web.config] Add location property Copy Code
<configuration>
...
<location path="Telerik.Web.UI.WebResource.axd">
   <system.web>
     <authorization>
       <allow users="*"/>
     </authorization>
   </system.web>
 </location>
...
</configuration>

 




All the best,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Chris Trina
Top achievements
Rank 1
answered on 01 Feb 2010, 01:19 PM
Rumen,

Thanks for the response.  Unfortunately I don't think either of these situations apply.  The pages that throw this error work 99 out of 100 times they are accessed so this is not a configuration related issue.  This truely is an intermittent problem, all of the problems and solutions you referenced were configuration in nature thus would occur constantly.

Chris
0
Rumen
Telerik team
answered on 04 Feb 2010, 08:57 AM
Hi Chris,

I am afraid that without providing reliable steps to reproduce the problem, there is not much that we could do.

If you are able to isolate the problem in a sample working project, we will debug it, see what is causing the error and fix it.
In other case, unfortunately it will be very hard / impossible to be of help and provide fix or suggestions on how to fix this intermittent problem. Right now we are shooting in the dark and we are not terribly happy that this does not help you solve the problem.

Sincerely,
Rumen
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Connections Academy Developer
Top achievements
Rank 1
answered on 10 Feb 2010, 08:30 PM
We are seeing the same behavior.  The problem is intermittent.  It doesn't affect all users or all pages.  It never happens on a page where we are using ASP.NET Ajax only.  It only occurs on pages that use a Telerik component.  We believe it may be related to IE8, but we aren't sure.

We are similarly getting these errors randomly.  We have no way to reproduce them.   The problem is clearly due to the value "Telerik.Web.UIbTelerik.Web.UI" in the query string - but we have no idea how it is getting there.  Users aren't manually entering these URL's, because we know the referrer is from one of our pages.   This particular page is hit over 100,000 times a day - and has this problem perhaps 5 or 10 times.


Error message: System.IO.FileNotFoundException: Could not loadfile or assembly 'Telerik.Web.UIbTelerik.Web.UI, Version=2009.2.826.35,Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies.The system cannot find the file specified.

File name: 'Telerik.Web.UIbTelerik.Web.UI, Version=2009.2.826.35,Culture=neutral, PublicKeyToken=121fae78165ba3d4'

at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase,Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)

at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, EvidenceassemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

at System.Reflection.Assembly.InternalLoad(String assemblyString, EvidenceassemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

at System.Reflection.Assembly.Load(String assemblyString)

at Telerik.Web.UI.ScriptEntry.LoadAssembly()

at Telerik.Web.UI.ScriptEntry.GetResourceNameHashes(String assemblyName)

at Telerik.Web.UI.ScriptEntry.Deserialize(String serializedScriptEntries)

at Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile()

at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)

atSystem.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&completedSynchronously)

0
Chris Trina
Top achievements
Rank 1
answered on 10 Feb 2010, 08:38 PM
Ours is extremely similar it is always for either WebResource.axd or ScriptResource.axd.  My feeling is that the url itself is somehow bad.  The query string on both of these calls is completely meaningless.


Time of Error: 2/10/2010 2:33 PM
URL: http://admin.buildyourowncurriculum.com/ScriptResource.axd?d=lgp4cfexinmwUX7eR5PX85TsitZXksV6tWGaOplzewEhXAcG8zDE8XQuFKYKn1EwUrm('Are you sure you would like to delete this Attachment?')) { document.forms[
Server Name: admin.buildyourowncurriculum.com
URL Referrer: http://admin.buildyourowncurriculum.com/admin/Course_edit.aspx?saction=edit&id=13031
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)
User IP: 209.94.182.253
User Host Name: 209.94.182.253
Platform: WinXP
Is Crawler: False
Supports JavaScript: False
Supports Cookies: True
User is Authenticated: False
User Name:


Time of Error: 2/10/2010 2:19 PM
URL: http://admin.buildyourowncurriculum.com/WebResource.axd?d=Ie1Ll[
Server Name: admin.buildyourowncurriculum.com
URL Referrer: http://admin.buildyourowncurriculum.com/public/Activity_edit2.aspx?TopicID=218028&sAdmin=True
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Tablet PC 1.7; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
User IP: 198.209.24.140
User Host Name: 198.209.24.140
Platform: WinXP
Is Crawler: False
Supports JavaScript: False
Supports Cookies: True
User is Authenticated: False
User Name:

0
Rumen
Telerik team
answered on 15 Feb 2010, 12:53 PM
Hi guys,

These intermittent problems could be due to that the application is restarted or the session of the logged user is expired. This could cause for some reason the encoding problem in the  Telerik.Web.UIbTelerik.Web.UI" query string.

When this problem occurs again, try to save the page and send us its HTML dump and its source code to see why it is rendered incorrectly.

Best regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Connections Academy Developer
Top achievements
Rank 1
answered on 15 Feb 2010, 01:19 PM
I am not able to capture the entire HTML page.  Our system captures all exceptions and emails us what information it can capture.

I find it odd that both Chris Trina and I are seeing identical problems - where the query string being passed to the Telerik WebResource handler is getting malformed.   

We are continuing to debug this issue and will send you more details if we are able.
0
ECMGuru
Top achievements
Rank 1
answered on 11 Jul 2014, 04:09 PM
Could you guys solve this problem? We are experiencing this intermittently in our Production environment like 1 out of 100 times.
0
Ianko
Telerik team
answered on 15 Jul 2014, 06:57 AM

Hello Manesh,

Could you provide more details.

  • Is the problem using a client-side code in the Head element?
  • Did you try wrapping it in RadCodeBlock as described in this help article?
  • Does the problem stems from a specific environment changes?
  • Can you provide some details how exactly is the problem reproduced?

Note that this forum thread is 4 year old and the problem described in here is not reproducible on our end. Due to that I can only make assumptions what is the exact origin for the described issue.

Regards,

Ianko
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.

 
Tags
Editor
Asked by
Chris Trina
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Chris Trina
Top achievements
Rank 1
Connections Academy Developer
Top achievements
Rank 1
ECMGuru
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or