Syntax error message
I have a bad couple of weeks. Everything I touch seems to break. Ok, anyway ... I have a web application in Visual Studio 2008 and it starts stange acting. I am getting an error that says a syntax error (nothing more). It "points" to the first line in my Forms.aspx file. The line says
<%@ Page Language="C#" MasterPageFile="MasterPageLogin.master" AutoEventWireup="true" CodeFile="Forms.aspx.cs" Inherits="artlgn_Form" Title="Untiled Page" %>
I have a file with the same name in a different folder, but it wasn't a problem before.
The ar class namespace is different in two files.
I'm guessing I'm missing something obvious.
Thanks in advance!
/ Fredrik
source to share
One thing to check is to turn off Visual Studio and IIS. Go to ASP.NET Temporary folder, maybe:
C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files
Now delete all folders and files inside this directory. Restart IIS and Visual Studio and try rebuilding and running the project. This is just one thing to check when you get strange build errors like this.
source to share