Nov 10, 2012 12:05 AM|3v3rhart|LINK
New install of OS and ASP.net software: I'm thinking I may need to install some sort of java or Jquery component that is presently missing perhaps? Would I see something for "Java" or "Jquery" under references?
Or perhaps I'm completely wrong and it's something else...error follows:
_____
Server Error in '/' Application.
Compiler Error Message: CS0103: The name 'Scripts' does not exist in the current context
Source Error:
Line 66:
Line 67: @section Scripts {
Line 68: @Scripts.Render("~/bundles/jqueryval")
Line 69: }
Source File: c:\Documents and Settings\Alpha\My Documents\ASP MVC projects\MusicStore\Stop Points\MvcMusicStore05b\MvcMusicStore\MvcMusicStore\Views\StoreManager\Edit.cshtml
Line: 68
_______
Project: MvcMusicStore Tutorial Step 5 - Edit / Environment: XP, MVC 4, VWS 2010 Express
All-Star
15692 Points
Nov 10, 2012 12:24 AM|CPrakash82|LINK
looks like you are missing the System.Web.Optimization DLLs. You need to add them in your project and then either use the using statement in your view or have them in your views folder's web.config file.
All-Star
15692 Points
Nov 10, 2012 01:05 AM|CPrakash82|LINK
you need to add in View's web.config file like below
<namespaces>
.....
<add namespace="System.Web.Optimization" />
....
Nov 10, 2012 01:22 AM|3v3rhart|LINK
New error received having to do with views/shared/layout file. I created a new entry at forum link below.
Thanks for your help.
Member
1 Points
Jan 24, 2013 11:49 PM|BanksySan1|LINK
Hi all,
I've just dont these steps, I've installed the optimization package via NuGet with:
PM> install-package Microsoft.AspNet.Web.Optimization
I can see the assembly in the references and I have the namespace in the web config like so:
" /> <add namespace="System.Web.Optimization" /> </namespaces> </pages> </system.web>
but I still get the same error, that being CS0103: The name 'Scripts' does not exist in the current context.
I've tried rebuilding the solution... am I missing something, is there some other "cleaning" that needs to be done?
5 replies
Last post Jan 24, 2013 11:49 PM by BanksySan1