When I am running my ASP.NET application I will get an error
Parser Error Description: An error occurred during the
Please try under "Project Settings/Build" set OutputPath to "bin\" not "bin\debug". this was my problem.
For me somehow the code-behind file got removed from the project. They showed up with a different icon in the solution explorer. I just had to expand the ASPX line to see the code behind and then right-click and add it to the project.
have you set your web app directory as application in IIS?
I have seen this error many times for different reasons.
Did you rename the namespace or class name in the code-behind file? Open the code-behind file and verify that the namespace for the page is called WebApp1
and that the class is called _Default
, or update the Inherits
-attribute in the aspx page header to fit the code-behind.
Have you specified your _Default class is under the namespace WebApp1 in Default.aspx.cs file ?
Please check.
Check your DLL is in the bin folder. (Not bin/debug...).