当我在本地运行该站点时,该站点运行良好,我将其发布并托管到我公司通过 SMART FTP 雇用的托管空间。有一个带有我公司名称的文件夹,例如。'我的公司'。它有子文件夹,如 App Data、App Code、Bin、Httpdocs、Httpsdocs...等。我将已发布的项目“UtilityServices”转移到 Httpdocs。然后我输入 www.MyCompany.net/UtilityServices/Customer_Login.aspx 我收到以下错误。
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 the assembly 'App_Web_ah9y-lsc'. Make sure that it is compiled before accessing the page.
Source Error:
Line 1: <%@ page language="C#" autoeventwireup="true" inherits="Customer_Login, App_Web_ah9y-lsc" %>
Line 2: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
Line 3:
Source File: /UtilityServices/Customer_Login.aspx Line: 1
Httpdocs 有一个 bin 文件夹和一个 webconfig,托管的 UtilityServices 有一个 bin 和 webconfig。这是这个错误的原因。
我正在使用 VS2008 C# 3.5 框架。