请帮我分析一下,这是什么错误?"Server Error in '/' Application."

imamouse 2003-10-18 03:43:43
服务器配置:
Windows 2000 pro
.Net Framework 1.0 英文
.Net Framework 1.1 简体中文
.Net Framework SDK 1.1 简体中文
.Net Framework 简体中文语言包
MDAC 2.7 简体中文
SQL Server 2000 个人版
其它:
Apache 1.3.8
PHP 4.1.1
MySQL 4.0 MAX
TomCat 5.0 Beta
J2SDK 1.4

执行.Net程序时就报告以下的错误。请问该如何解决?



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 'web1.EducationManage'.

Source Error:


Line 1: <%@ Page language="c#" Codebehind="EducationManage.aspx.cs" AutoEventWireup="false" Inherits="web1.EducationManage" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>


Source File: c:\inetpub\wwwroot\EduManage\NewEducationManage\EducationManage.aspx Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
...全文
129 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
wailon 2003-12-24
  • 打赏
  • 举报
回复
Server Error in '/' Application.
--------------------------------------------------------------------------------

Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\bbd6b1aa\93c6db3e" is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\bbd6b1aa\93c6db3e" is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[UnauthorizedAccessException: Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\bbd6b1aa\93c6db3e" is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +632
System.IO.Directory.CreateDirectory(String path) +195
System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext context) +85
System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContext context) +97
System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(HttpContext context, String virtualPath, Boolean fApplicationFile) +29
System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation() +91
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +148
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplication(HttpContext context) +43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +170
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414


以上是我在自己机器上调试的错误,麻烦帮忙解决!
skyover 2003-10-18
  • 打赏
  • 举报
回复
不是。是必须要在虚拟目录下。
imamouse 2003-10-18
  • 打赏
  • 举报
回复
把bin目录胡乱往上N级目录复制了一遍就行了。不知道什么原理,难道bin目录必须在"/"下?
imamouse 2003-10-18
  • 打赏
  • 举报
回复
afxucamd(u) & skyover(嘻哈呵嘿):
第一条我想应该没问题。
第二条的完全限定名我不明白什么意思。
第三条也应该没错才对。与EducationManage.aspx.cs同级的目录下有bin目录。目录结构是:
+bin
|--Interop.CRQUERYENGINE.dll
|--web1.dll
|--web1.pdb
|--WindowsControlLibrary1.dll

请帮我看看是怎么回事?

这是EducationManage.aspx的源代码:
----------------------------------------------------------------
<%@ Page language="c#" Codebehind="EducationManage.aspx.cs" AutoEventWireup="false" Inherits="web1.EducationManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<TITLE></TITLE>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<frameset name="mm" id="mm" rows="90,*">
<frame name="top" scrolling="no" src="top.asp" target="middle" noResize>
<frame name="middle" src="body.asp" style="WIDTH: 748px; HEIGHT: 284px">
<noframes>
</noframes>
<frame src="UntitledFrame-2">
</frameset>
</HTML>
----------------------------------------------------------------


这是EducationManage.aspx.cs的源代码:
----------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace web1
{
/// <summary>
/// WebForm1 的摘要说明。
/// </summary>
public class EducationManage : System.Web.UI.Page
{

private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion


}
}
----------------------------------------------------------------
afxucamd 2003-10-18
  • 打赏
  • 举报
回复
1、检查你的EducationManage Class的namespace 是否为webl,
2、检查EducationManage Class是否为public,EducationManage.aspx的父类的完全限定名是否为webl.EducationManage
3、如楼上所说
skyover 2003-10-18
  • 打赏
  • 举报
回复
你编绎的dll文件没有放到虚拟目录的bin下去。

62,041

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧