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

[Solved] Type.registerNamespace('Sys.Mvc') throws Typ is undifiened Exception

5 Answers 161 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Thomas Bernt
Top achievements
Rank 1
Thomas Bernt asked on 17 Aug 2009, 07:41 PM

Hi,
I have set up a new MVC Project with Visual Studio 2008 and configured as described the Telerik.Web.Mvc Library.
After starting the Project I get the Error Message on the JavaScript file "MicrosoftMvcAjax.debug.js" Typ is undefined on line 6 .
Can anyone help.
Sincerely Tom

5 Answers, 1 is accepted

Sort by
0
Kazi Manzur Rashid
Telerik team
answered on 18 Aug 2009, 10:24 AM
Hi Thomas Bernt,

Could you please post the ScriptRegistrar code, so that I can see how did you setup the ASP.NET Ajax MVC script.

Thanks,
Kazi Manzur Rashid
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Thomas Bernt
Top achievements
Rank 1
answered on 18 Aug 2009, 10:30 AM
HI Kazi Manzur Rashid,
I have placed it before the closing body tag on the page site.master.

<%

 Html.Telerik()
       .ScriptRegistrar()
       .Scripts(scripts => scripts.Add("~/Scripts/MicrosoftMvcAjax.debug.js"))
       .Render(); 

 %> 

 

 

 

 

 

0
Kazi Manzur Rashid
Telerik team
answered on 18 Aug 2009, 10:42 AM
Hi Thomas Bernt,

The MicrosoftMvcAjax.js is depended on the MicrosoftAjax.js file. You have to add the MicrosoftAjax.js prior the MicrosoftMvcAjax.js. I hope the following will solve the issue:
<% Html.Telerik()
       .ScriptRegistrar()
       .Scripts(scripts =>
   scripts.Add("~/Scripts/MicrosoftAjax.debug.js")
   scripts.Add("~/Scripts/MicrosoftMvcAjax.debug.js")
  )
       .Render(); %>

Kind regards,
Kazi Manzur Rashid
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Thomas Bernt
Top achievements
Rank 1
answered on 18 Aug 2009, 11:39 AM

HI Kazi Manzur Rashid,
the syntax ist a litle bit diffrent.

<% Html.Telerik()
.ScriptRegistrar()
.Scripts(scripts =>
scripts.Add("~/Scripts/MicrosoftAjax.debug.js")
.Add("~/Scripts/MicrosoftMvcAjax.debug.js")
)
.Render(); %>

But it works now.
Thanks a lot,
Tom

0
Jerry
Top achievements
Rank 1
answered on 20 Aug 2010, 12:01 PM
I have had some jQuery confilcts and wondered if I should be loading all my javacript libraries using the Telerik ScriptManager- is this the preferred method?

THanks

Jerry
Tags
General Discussions
Asked by
Thomas Bernt
Top achievements
Rank 1
Answers by
Kazi Manzur Rashid
Telerik team
Thomas Bernt
Top achievements
Rank 1
Jerry
Top achievements
Rank 1
Share this question
or