就像标题所说,这只发生在我在项目中创建新项目时。即使我创建了一个默认应该工作的新webform。 (虽然它会是空白的)。这是我从一个新的webform获得的错误的一个例子。这是我在ASP.net的第一个项目。有可能我无意中搞砸了一些超出我所知范围的东西。我花了3个小时试图让它工作,请帮忙!
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'TaylorsProfessionalServices.WebForm1'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TaylorsProfessionalServices.WebForm1" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /WebForm1.aspx Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5483