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

[Solved] Script folder not found after upgrade

3 Answers 96 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Grant Drury-Green
Top achievements
Rank 1
Grant Drury-Green asked on 27 Feb 2012, 06:12 AM
I just upgraded to MVC 2012.1.214 using the Upgrade wizard in Visual Studio

Upon trying to run the site - I get an error (see screenshot)

I would have thought that the ScriptRegistrar should have been looking for 2012.1.214 (not 2011)

I have reverted code and rerun the upgrade, twice, to make sure it wasn't a glitch...

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 27 Feb 2012, 06:00 PM
Hello Grant,

I am sorry to hear you are experiencing such issues.

Can you check your project's references and confirm your Telerik.Web.Mvc reference is the correct version (2012.1.214)?

Kind regards,
Andrey
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
Grant Drury-Green
Top achievements
Rank 1
answered on 27 Feb 2012, 10:47 PM
Hi again,

It turned out that I had a hard coded path to the old scripts folder in a separate (partial) file.

However, this leads to another question:
I have a partial which (optionally) contains javascript to create a telerik window on the client side via the 'create' method. Currently, when I know I'll need to be able to create the window, I inject the following in the partial.

@{
    Html.Telerik().ScriptRegistrar().Scripts(s => s.Add("2012.1.214/telerik.window.js"));
}

This lead to the issue above, but I'm not sure of a better way to do this (as I'm not using the Telerik().Window() helper method). 
0
Atanas Korchev
Telerik team
answered on 28 Feb 2012, 08:21 AM
Hi,

 You can use the following code which will take care of the version number automatically:

@{
    Html.Telerik().ScriptRegistrar().DefaultGroup(g => g.Add("telerik.window.js"));
}

All the best,
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
Installer and VS Extensions
Asked by
Grant Drury-Green
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Grant Drury-Green
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or