Parser Error when deploy ASP.NET application

后端 未结 17 599
既然无缘
既然无缘 2021-01-03 22:56

I\'ve finished simple asp.net web application project, compiled it, and try to test on local IIS. I\'ve create virtual directory, map it with physical directory, then put al

17条回答
  •  别那么骄傲
    2021-01-03 23:52

    Looking at the error message, part of the code of your Default.aspx is :

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AmeriaTestTask.Default" %>
    

    but AmeriaTestTask.Default does not exists, so you have to change it, most probably to the class defined in Default.aspx.cs. For example for web api aplications, the class defined in Global.asax.cs is : public class WebApiApplication : System.Web.HttpApplication and in the asax page you have :

    <%@ Application Codebehind="Global.asax.cs" Inherits="MyProject.WebApiApplication" Language="C#" %>
    

提交回复
热议问题