发布到 IIS 服务器后无法加载类型 'namespace._default'

Could not load type 'namespace._default' after publishing to IIS server

让我的应用程序运行后。我将其发布到 IIS 并收到以下错误:

Server Error in '/Library' 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 'go._default'.

Source Error: 


Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="go._default" %>
Line 2:  
Line 3:  

Source File: /library/go/default.aspx    Line: 1 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009

我该如何解决这个错误?仅供参考:我只能访问该服务器的文件系统。我将它从 VS 发布到位置 \Servername\Library\go .

编辑:我忘了说我确实检查了 bin 文件夹,里面有三个文件,两个 .dll 用于我通过 nuget 添加的包,和 go.dll.

当我使用发布到一个较大网站的子文件夹时,上传的 bin 文件被放入 \Library\go\bin,但服务器正在 \Library\bin 中寻找它们.

创建 \Library\bin 文件夹并复制 .dlls 文件夹解决了问题。如果有人想评论我如何重写 Inherits= 中的路径以将它们保存在 \Library\go\bin 文件夹中,我们将不胜感激。