我将我的 ASP.NET 项目上传到我的服务器,但出现以下错误:
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 'web1.WebForm1'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="web1.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: /kaka/web1/WebForm1.aspx Line: 1
最佳答案
如果这是一个 ASP.NET Web 应用程序(不是网站),那么您还需要上传代码隐藏 DLL。
如果这是一个网站,那么您需要上传您的 app_data 目录。
关于asp.net - Asp.net 网站位于服务器上时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8364274/