Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I get this error:
Error loading Razor Script navRazor.cshtml
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\28123bd1\e17eee56\App_Web_navrazor.cshtml.70df5e80.bnyunjig.0.cs(41): error CS0115: 'ASP._Page_macroScripts_navRazor_cshtml.Execute()': no suitable method found to override
Have no idea what's causing this.
Anyone have an idea?
Stefan
What does the code say on line 41, have you tried setting a breakpoint?
No this is just a basic cshtml file in scripts:
<em>DynamicNode:</em><ul> @foreach (var item in @Model.ChildItem.Where("umbracoNaviHide != true")) { <li><a href="@item.Url">@item.Name</a></li>}</ul>
Hmmm, this code gives me no problems, are you using 4.7RC ?
There seems to be something wrong with your install if you can't run something simple like this. Do you have razor scripts that do work?
Found it,
Missing the last Razor entries in web.config
thanks,
Can you please let me know what entry did you added in web.config as I am new to umbraco.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Razor error
Hi,
I get this error:
Error loading Razor Script navRazor.cshtml
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\28123bd1\e17eee56\App_Web_navrazor.cshtml.70df5e80.bnyunjig.0.cs(41): error CS0115: 'ASP._Page_macroScripts_navRazor_cshtml.Execute()': no suitable method found to override
Have no idea what's causing this.
Anyone have an idea?
Stefan
What does the code say on line 41, have you tried setting a breakpoint?
No this is just a basic cshtml file in scripts:
<em>DynamicNode:</em>
<ul>
@foreach (var item in @Model.ChildItem.Where("umbracoNaviHide != true"))
{
<li><a href="@item.Url">@item.Name</a></li>
}
</ul>
Hmmm, this code gives me no problems, are you using 4.7RC ?
There seems to be something wrong with your install if you can't run something simple like this. Do you have razor scripts that do work?
Found it,
Missing the last Razor entries in web.config
thanks,
Stefan
Can you please let me know what entry did you added in web.config as I am new to umbraco.
is working on a reply...