Last post Mar 12, 2012 09:50 AM by sqltiger70
Mar 07, 2012 10:37 AM|sqltiger70|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 11:21 AM|jeremyh|LINK
It the Resource Manager. Take a read of
and search for Resource Manager or GetScriptTags
Mar 07, 2012 12:51 PM|yousaid|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 01:06 PM|jeremyh|LINK
You can always update to the WebMatrix Beta Refresh via WebPI v4 Beta which fixes that.
Mar 07, 2012 01:23 PM|yousaid|LINK
But that does not work either.
See this link.
Is this a new Refresh AFTER VS 2011 Preview?
Mar 07, 2012 01:53 PM|jeremyh|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 10:00 AM|yousaid|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 09:35 AM|sqltiger70|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 09:50 AM|sqltiger70|LINK
nevermind, I fixed it.