При попытке загрузить в браузере веб-форму ASP.NET (.aspx), над которой я работаю, я получаю следующая ошибка времени выполнения:ASP.NET: CS1519: Недопустимый токен «это» в объявлении члена класса, структуры или интерфейса
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1519: Invalid token 'this' in class, struct, or interface member declaration
Source Error:
Line 447: #line default
Line 448: #line hidden
Line 449: [email protected]__PageInspector_EndRenderTracing(new object[] {
Line 450: @__w});
Line 451: [email protected]__PageInspector_BeginRenderTracing(new object[] {
Код, указанный в сообщении об ошибке, не отображается ни в одном из моих собственных кодов.
Мой проект строится нормально.
В чем причина этой ошибки?
Это хорошая идея, чтобы не поставить на стороне сервера код .aspx. Поместите их в файл .aspx.cs [код за файлом] (https://msdn.microsoft.com/en-us/library/015103yb.aspx). – mason