日期:2014-05-17  浏览次数:20698 次

网站发布之后报错了...
Server Error in '/iis' 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_aeqwpg2h'. Make sure that it is compiled before accessing the page.

Source Error: 


Line 1:  <%@ page language="C#" autoeventwireup="true" inherits="Default, App_Web_aeqwpg2h" %>
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: /iis/Default.aspx    Line: 1 


------解决方案--------------------
由于你发布的应用程序,没有放在建立虚拟目录的根目录,比如你建立的虚拟目录为 folderRoot 而你把你要发布的应用程序放在 forderRoot 下的 forder 文件夹中就会出现以上问题,有两种办法可以解决此问题:

 

1.        将发布的应用程序直接放在虚拟目录。

2.        将要发布的应用程序中的 bin 文件夹剪切出来,放置到上一级目录就可以解决此问题。 
------解决方案--------------------
改回来了就重新再编译一样,不行再删除IIS缓存。
实际上错误提示已经很清楚了,你修改名称没有修改完全,页面代码找不到CS代码而已