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

[Solved] Problem with RadScriptmanager (Javascript error)

2 Answers 90 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alexis Gagnon
Top achievements
Rank 1
Alexis Gagnon asked on 21 Sep 2009, 09:19 PM
Here is exactly what I do :

  1. I open Visual Studio 2005
  2. Create a new Web Site
  3. In default.aspx, I add a new RadEditor Control
  4. In the Smart Tag, I
    • Enable RadEditor Dialogs
    • Enable Spell Check for RadEditor
    • Add RadScriptManager
  5. I compile the project
  6. I open the project (http://localhost/projectname/default.aspx) in my web browser.
  7. The Editor shows and all basic features work fine.  But when I open any dialog (Link manager, Image Manager,  etc), the dialog shows but not completely and I get Javascript errors like this :

 

Error: Sys is not defined  
Source file: http://localhost/project/Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=Hyperlink%20Manager&doid=1b370f61-93b1-4412-8280-42ccbd3a6b55&dpptn=&dp=BgtyGRNbERUlL1IBIgV6KyN%2FC3NpPxZKOWIPU1UTA0gCbjpUOCpLaHgrXzkuAj5LGBoVCC5hPE4jPyUdImF%2BKCMaDENiCh5VD2MIFXoXLVM1Uz4ICgVpYXEoUwUWPA9YNhsRNyhhIxUtPzEEIhRmMhh%2FbEp8IgJODhkTCnsQGEE1YSYJBj1HensrXy8XPCVDGDcVARNhEQ8tSDEEIj9ENRhwC0BSVWxTPhYxDlUTbFw1YQBPBjwGR0MrcjAmPA9CN24SAgd1ES4lSTkSLz5ACxpvHwV%2BMTBHOmExV2E4A0AHfyZgCQdxRHMGS3YgFj1iNxorKS9%2BMxg6PVZaIT8dExx%2FEElVLyhrDWI1EW45ZAI3RQBgEj5bTmwQfXYhOi1CNRsNOQVhXDQmSCk%2BLz5MdBtvF0RSLxJrDhYPFWADPgM1RSJsOFtXeEMqfXYtKwNCMDENAAd%2BBTclPSZZLBVYCh19YHVjMxJrDToxVWMRG3Exbj5gOS1xRHY5VzAhFyoANhsVKB9YBSMhSwcSKwdyAzR%2BNURVLxp8IRkPFW0CD2EHRClBCgdlfnc5cXYgBy1QNRo3JBNMOzchPggQLwUZBhxEKXVlM2gRPgk1Vm0MH0c6fhR9PT51XENOQzkhFg8BNR8%2FNhNhEQMtKxQfNBZcDRsaF1hSIDQQNQkPFlVmYGM6cT5XECxpR0M0aS84FQhC  
Line: 50  
 
Code: Sys.WebForms.PageRequestManager._initialize('ScriptManager1'document.getElementById('Form1')); 

Error: Type is not defined  
Source file: http://localhost/project/Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=Hyperlink%20Manager&doid=1b370f61-93b1-4412-8280-42ccbd3a6b55&dpptn=&dp=BgtyGRNbERUlL1IBIgV6KyN%2FC3NpPxZKOWIPU1UTA0gCbjpUOCpLaHgrXzkuAj5LGBoVCC5hPE4jPyUdImF%2BKCMaDENiCh5VD2MIFXoXLVM1Uz4ICgVpYXEoUwUWPA9YNhsRNyhhIxUtPzEEIhRmMhh%2FbEp8IgJODhkTCnsQGEE1YSYJBj1HensrXy8XPCVDGDcVARNhEQ8tSDEEIj9ENRhwC0BSVWxTPhYxDlUTbFw1YQBPBjwGR0MrcjAmPA9CN24SAgd1ES4lSTkSLz5ACxpvHwV%2BMTBHOmExV2E4A0AHfyZgCQdxRHMGS3YgFj1iNxorKS9%2BMxg6PVZaIT8dExx%2FEElVLyhrDWI1EW45ZAI3RQBgEj5bTmwQfXYhOi1CNRsNOQVhXDQmSCk%2BLz5MdBtvF0RSLxJrDhYPFWADPgM1RSJsOFtXeEMqfXYtKwNCMDENAAd%2BBTclPSZZLBVYCh19YHVjMxJrDToxVWMRG3Exbj5gOS1xRHY5VzAhFyoANhsVKB9YBSMhSwcSKwdyAzR%2BNURVLxp8IRkPFW0CD2EHRClBCgdlfnc5cXYgBy1QNRo3JBNMOzchPggQLwUZBhxEKXVlM2gRPgk1Vm0MH0c6fhR9PT51XENOQzkhFg8BNR8%2FNhNhEQMtKxQfNBZcDRsaF1hSIDQQNQkPFlVmYGM6cT5XECxpR0M0aS84FQhC  
Line: 104  
 
Code: Type.registerNamespace("Telerik.Web.UI.Widgets"); 

and a few more like that...  So I can't make it work properly and use all features.  Am I missing something ?  Am I doing something wrong ?

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 24 Sep 2009, 12:00 PM
Hi Alexis,

The problem in your site is most likely due to that you have not registered the default ASP.NET AJAX handlers and modules in your web application's Web.config file. More specifically, you are missing the ScriptResource.axd handler.
See the following help article for more information about configuring ASP.NET AJAX - http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx

Sincerely yours,
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
Alexis Gagnon
Top achievements
Rank 1
answered on 24 Sep 2009, 02:16 PM
Seem to be working fine.

Thank you
Tags
Editor
Asked by
Alexis Gagnon
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Alexis Gagnon
Top achievements
Rank 1
Share this question
or