Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyword, identifier, or string expected after verbatim specifier: @

Tags:

asp.net

I'm having a strange problem on my pages... I have these two pages that, if you dont have them opened your application does not start...

If these two pages are closed, I get the error I describe on my title of this question.

  Error 1   Keyword, identifier, or string expected after verbatim specifier: @ 

and it points always to the first line of the page.apsx:

    <%@ Page Title="Forza - Chamados" Language="C#" MasterPageFile="~/MasterAdm.Master" AutoEventWireup="true" CodeBehind="TodosChamados.aspx.cs" Inherits="Testando.TodosChamados" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Relatorio.aspx.cs" Inherits="Testando.Relatorio" %>

What could it be ?

like image 872
Ghaleon Avatar asked Jan 14 '23 22:01

Ghaleon


1 Answers

I found the solution for my strange problem... I don't know why and I dont know wich is the difference between set a page propert Build Action = Content / Complie. But all I did was set them to Content instead of compile and worked like a charm !

Thanks to this post.

like image 150
Ghaleon Avatar answered Jan 19 '23 11:01

Ghaleon