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

+1


source to share


2 answers


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.

+2


source


You can get more information about the error by enabling the debugger in your browser. After enabling the debugger, as soon as an error occurs, it will ask you if you want to debug the error, click Yes and it will lead you to the broken line.



0


source







All Articles