I have developed a MVC 4 web application, and i am getting this error:
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\3f2bfc7c\b3a7a1f1\App_Web_evento.cshtml.1daa837f.iofx3fob.0.cs(43): error CS1003: Syntax error, ‘>’ expected
In local it works fine, but when i publish and upload changes to the web i get this error.
I have tried to clean the temporary files but i keep getting the error.
How can i debug and solve this error?
Edit: this is the code at line 43
public class _Page_Views_sampedros_evento_cshtml : System.Web.Mvc.WebViewPage<EventoInfo;> {
#line hidden
public _Page_Views_sampedros_evento_cshtml() {
}
I suppose the error goes for the “;>” part at the end of the first line, but this code is generated automatically, in local it works.
Even though the runtime error is in the temporary files, the error message is telling you that the syntax issue is in your
sampedros/evento.cshtmlorsampedros_evento.cshtmlview.Look at any model declarations in that view and see if your using a semicolon to end a statement when you shouldn’t. The line probably ends with
EventInfo;and should just end atEventInfo.