2011-12-03 116 views
3

我上传我的asp.net项目到我的服务器在服务器上,我得到以下错误:错误时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 
+1

可能重复[错误部署asp.net项目](http://stackoverflow.com/questions/8364469/error-in-deploying-asp-net-project) – RickNZ

回答

1

如果这是一个asp.net web应用程序(没有网站)那么你也需要上传你的代码隐藏DLL。

如果这是一个网站,那么你需要上传你的app_data目录。

+0

我上传的所有项目,包括DLL –