Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net '中的服务器错误/';应用_Asp.net_C# 4.0_Web_Publish_Parsing Error - Fatal编程技术网

Asp.net '中的服务器错误/';应用

Asp.net '中的服务器错误/';应用,asp.net,c#-4.0,web,publish,parsing-error,Asp.net,C# 4.0,Web,Publish,Parsing Error,我想在服务器上发布我的站点,但我遇到了这种类型的错误 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 sourc

我想在服务器上发布我的站点,但我遇到了这种类型的错误

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 'egenc.SiteMaster'.

Source Error:

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="egenc.SiteMaster" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


Source File: /egenc/Site.Master    Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 
“/”应用程序中出现服务器错误。 解析器错误描述:解析服务此请求所需的资源时出错。请查看以下特定的解析错误详细信息,并适当修改源文件。 分析器错误消息:无法加载类型“egenc.SiteMaster”。 源错误: 第1行: 第2行: 第3行: 源文件:/egenc/Site.Master行:1 版本信息:Microsoft.NET Framework版本:4.0.30319;ASP.NET版本:4.0.30319.272
不知道出了什么问题?如何解决此错误。

我认为这是一个打字错误,应该是这样的:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="egenc.master.Site" %>


如果你没有弄乱指令或类名…

你发布了bin吗?你如何发布网站?@Daniel:是的,我也有发布bin文件夹。@walther:右键单击项目解决方案,然后发布网站。可以吗?然后呢?在实际发布之前,您应该设置多个设置,如发布位置、发布内容等。。