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

[Solved] Specified file does not exist: "~/Scripts/telerik.common.js".

3 Answers 279 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.
20Below
Top achievements
Rank 1
20Below asked on 10 Oct 2011, 12:21 AM
I keep getting this error when I use two "Windows" (telerik modal dialog) within the same page, which then results in a 500 error.
Error! The requested URL returned 500 - error

 I'm registering scripts via the following code:

@(Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.DefaultPath("~/Scripts/Telerik/")).jQuery(true).jQueryValidation(true).OnDocumentReady(@<text>
            // open the initially hidden window when the button is clicked
            $('#add-new-project-group-button')
                .click(function(e) {
                    e.preventDefault();
                    $('#AddNewProjectGroup').data('tWindow').center().open();
                });
            // add button hovers
            $('.t-button').live('mouseenter', $.telerik.buttonHover)
                            .live('mouseleave', $.telerik.buttonLeave);

            $('#add-new-project-button')
                .click(function(e) {
                    e.preventDefault();
                    $('#AddNewProject').data('tWindow').center().open();
                });

Both the min files and the non-min files are located in the "~/Scripts/Telerik/" folder.
Please help, thanks!

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 11 Oct 2011, 08:11 AM
Hi 20Below,

Your code does not indicate the cause of this problem. Could you please provide more details/code? A running sample project would be best.

Regards,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
20Below
Top achievements
Rank 1
answered on 15 Oct 2011, 09:26 PM
I don't have time to send a sample project but I'm still having problems. It now happens when I set the Grid databinding to Ajax (vs. Server). I've removed the ScriptResitrar from the _Layout.cshtml file (master page) and just have it on my content page (index.cshtml). One thing to note is that the error only happens when I hit the paging control at the bottom of the grid. Here is my register code:

@Html.Telerik().ScriptRegistrar().jQuery(true).jQueryValidation(false).DefaultGroup(group => group.DefaultPath("~/Scripts/Telerik/")
             .Add("jquery.validate.min.js")
             .Add("~/Scripts/jquery.validate.unobtrusive.min.js")
             .Add("~/Scripts/modernizr-1.7.min.js")
             .Add("~/Scripts/MyScripts/ProjectAdministration/global.js"))
0
Atanas Korchev
Telerik team
answered on 17 Oct 2011, 08:25 AM
Hi 20Below,

 The server error 500 means that a server side exception has occurred when you are trying to page. Most probably there is an exception in the action method which provides data for the grid.

Regards,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
General Discussions
Asked by
20Below
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
20Below
Top achievements
Rank 1
Share this question
or