Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 12, 2012 01:50 PM by sqltiger70
Mar 07, 2012 02:37 PM|LINK
I now get this error after running my existing webmatrix websites after doing the install. Any ideas?
CS0103: The name 'Scripts' does not exist in the current context
Line 44: </div>
Line 45: </footer>
Line 46: @Scripts.GetScriptTags() Line 47: </body>
Line 48: </html>
Mar 07, 2012 03:21 PM|LINK
It the Resource Manager. Take a read of
and search for Resource Manager or GetScriptTags
Mar 07, 2012 04:51 PM|LINK
Did you install Visual Studio 2011 Preview ?
Webmatrix fails after installing any component of VS 2011. In my own case, Webmatrix will not even start and when I try to run existing applications using VS 2010, I get same error you have.
See this Thread:
Mar 07, 2012 05:06 PM|LINK
You can always update to the WebMatrix Beta Refresh via WebPI v4 Beta which fixes that.
Mar 07, 2012 05:23 PM|LINK
But that does not work either.
See this link.
Is this a new Refresh AFTER VS 2011 Preview?
Mar 07, 2012 05:53 PM|LINK
Yes it was released after and has fixed the problems on my machines.
Try this link http://t.co/4IMrXbpi for the download.
Mar 10, 2012 02:00 PM|LINK
This solved my problems too. Looks like they made changes to what gets called for scripts to now be
Assets was not in the previous path.
Mar 12, 2012 01:35 PM|LINK
What else did you change. I made the above the change, but now I get the this error.
Compiler Error Message: CS1502: The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments
Line 12: // Scripts for client side validation
Line 14: @Assets.AddScript("~/Scripts/jquery-1.6.2.min.js"); Line 15: @Assets.AddScript("~/Scripts/jquery.validate.min.js");
Line 16: @Assets.AddScript("~/Scripts/jquery.validate.unobtrusive.min.js");
Mar 12, 2012 01:50 PM|LINK
nevermind, I fixed it.