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

Generic error "Specified file does not exist: "~/Scripts/jquery-1.7.1.js"."

3 Answers 209 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.
Patrick
Top achievements
Rank 1
Patrick asked on 20 Mar 2012, 07:23 PM
We are testing the Telerik controls suite for Asp.Mvc and we have noticed that when we are doing error (like binding not the right type to the Grid) or any others kind of error that Teleri popup an error window with the title "FileNotFoundException occured" with the message "Specified file does not exist: "~/Scripts/jquery-1.7.1.js".

Everytime, the problem was not about Jquery or any other Javascript file. Why does the control return this kind of generic message instead of having a clear and simple error message that tell what is really the problem?


3 Answers, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 1
answered on 22 Mar 2012, 08:55 PM
I have found that the company has overloaded the OnException of the inherit class of all our controller which set the filterContext.ExceptionHandled to True. After, they redirect the call to the default View() which seem to broke everything even if the view is simply as showing in a grid a simple collection.

Now, everytime I have an error concerning JQuery + Telerik, I know that I have to check the OnException to know the error.

Does anyone have error handling problem like this and how do you handle it?
0
Patrick
Top achievements
Rank 1
answered on 05 Apr 2012, 04:29 PM
I am still getting this error without having any backend problem. Just add the DatePickerFor inside a partial view and I have this error even if I load ALL javascript of Telerik at the end of the page. 
0
Patrick
Top achievements
Rank 1
answered on 10 Apr 2012, 01:52 PM
I have change back the javascript folder to 2012.1.214 instead of our custom name "telerik" and I do not receive anymore. I had to change back to  @Html.Telerik().ScriptRegistrar() instead of using custom group...

I have noticed that the error were containing a hardcoded path to f:/110/griffin//.... this is weird...
Tags
General Discussions
Asked by
Patrick
Top achievements
Rank 1
Answers by
Patrick
Top achievements
Rank 1
Share this question
or