net程序只能放在主目录下

来源:百度知道 编辑:UC知道 时间:2024/06/05 02:38:26
我的一个用.NET做的网站上传到购买的某空间中,运行时没有问题而且客服那边也说已经开了.NET2.0框架.但是后来再运行时后台管理页面又不行了,出现了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_bdzgbswc'. Make sure that it is compiled before accessing the page.

Source Error:

Line 1: <%@ page language="C#" autoeventwireup="true" inherits="administer_left, App_Web_bdzgbswc" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DT

你把你的站点文件直接放到站点空间的那个一级目录里面去就可以了.并不是说.NET的只能放在主目录里面,而是别个给你提供的空间也是以虚拟目录的方式来的,他们在IIS里面给你指定的就是你的空间主目录,所以你只能把站点文件全站放在主目录中去才行喽