Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
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.
You can always update to the WebMatrix Beta Refresh via WebPI v4 Beta which fixes that.
Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
Regards
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
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 Source Error:
Line 12: // Scripts for client side validation
Line 13:
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");
sqltiger70
Member
9 Points
11 Posts
Error after installing Webmatrix Beta 2 Refresh
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>jeremyh
Star
8173 Points
1477 Posts
Re: Error after installing Webmatrix Beta 2 Refresh
Mar 07, 2012 03:21 PM|LINK
It the Resource Manager. Take a read of
http://www.asp.net/web-pages/overview/what's-new/top-features-in-web-pages-2-developer-preview
and search for Resource Manager or GetScriptTags
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
yousaid
Participant
811 Points
334 Posts
Re: Error after installing Webmatrix Beta 2 Refresh
Mar 07, 2012 04:51 PM|LINK
Greetings,
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:
http://forums.asp.net/t/1776362.aspx/1?CAUTION+WebMatrix+is+probably+NOT+compartible+with+Visual+Studio+2011+Beta
jeremyh
Star
8173 Points
1477 Posts
Re: Error after installing Webmatrix Beta 2 Refresh
Mar 07, 2012 05:06 PM|LINK
yousaid,
You can always update to the WebMatrix Beta Refresh via WebPI v4 Beta which fixes that.
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
yousaid
Participant
811 Points
334 Posts
Re: Error after installing Webmatrix Beta 2 Refresh
Mar 07, 2012 05:23 PM|LINK
But that does not work either.
See this link.
.http://forums.iis.net/t/1187677.aspx
Is this a new Refresh AFTER VS 2011 Preview?
jeremyh
Star
8173 Points
1477 Posts
Re: Error after installing Webmatrix Beta 2 Refresh
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.
Jeremy
If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
That way future readers will know which post solved your issue.
yousaid
Participant
811 Points
334 Posts
Re: Error after installing Webmatrix Beta 2 Refresh
Mar 10, 2012 02:00 PM|LINK
THANKS.
This solved my problems too. Looks like they made changes to what gets called for scripts to now be
@Assets.GetScripts()
Assets was not in the previous path.
thanks again
yousaid
sqltiger70
Member
9 Points
11 Posts
Re: Error after installing Webmatrix Beta 2 Refresh
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
Source Error:
Line 12: // Scripts for client side validation Line 13: 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");sqltiger70
Member
9 Points
11 Posts
Re: Error after installing Webmatrix Beta 2 Refresh
Mar 12, 2012 01:50 PM|LINK
nevermind, I fixed it.