怎么会事?极端郁闷中

haixx0894 2003-01-10 04:19:52
昨天装了 .NET Framework SDK,启动之后运行.aspx文件没什么问题,但只要一运行需要虚拟目录的文件就报错


Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 36: "Passport" and "None"
Line 37: -->
Line 38: <authentication mode="Windows" />
Line 39:
Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING


然后创建了虚拟目录,也在属性里设了应运程序,但还是错误

File or assembly name System.Web, or one of its dependencies, was not found.
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.IO.FileNotFoundException: File or assembly name System.Web, or one of its dependencies, was not found.

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 identifed using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web' could not be loaded.


LOG: Post policy reference: System.Web, Version=1.0.3300.0, Culture=neutral
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.2914/Temporary%20ASP.NET%20Files/www/30fdda9b/ad9493e9/System.Web.DLL.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.2914/Temporary%20ASP.NET%20Files/www/30fdda9b/ad9493e9/System.Web/System.Web.DLL.
LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/aspnet/3/bin/System.Web.DLL.
LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/aspnet/3/bin/System.Web/System.Web.DLL.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.2914/Temporary%20ASP.NET%20Files/www/30fdda9b/ad9493e9/System.Web.EXE.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.2914/Temporary%20ASP.NET%20Files/www/30fdda9b/ad9493e9/System.Web/System.Web.EXE.
LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/aspnet/3/bin/System.Web.EXE.
LOG: Attempting download of new URL file:///D:/Inetpub/wwwroot/aspnet/3/bin/System.Web/System.Web.EXE.



Stack Trace:


[FileNotFoundException: File or assembly name System.Web, or one of its dependencies, was not found.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly referencingAssembly) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity) +335
System.Web.UI.Util.GetReferencedAssembliesHashtable(Assembly a) +73
System.Web.Compilation.BaseCompiler.GetCompiledType() +369
System.Web.UI.PageParser.CompileIntoType() +59
System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +127

[HttpException (0x80004005): Exception of type System.Web.HttpException was thrown.]
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +556
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +118
System.Web.UI.TemplateParser.GetParserCacheItem() +112
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +109
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +27
System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +14
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +181
System.Web.MapHandlerExecutionStep.Execute() +94
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173


倒霉呀,搞了一天也没搞好,心情烦躁,极度郁闷,面临崩溃,望高人指点一二
...全文
39 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ZHANG9652 2003-01-11
  • 打赏
  • 举报
回复
呵呵,又不来了呀
ZHANG9652 2003-01-10
  • 打赏
  • 举报
回复
只要一运行需要虚拟目录的文件是什么意思,请说明白
latahu 2003-01-10
  • 打赏
  • 举报
回复
<authentication mode="Windows" />
改成
<authentication mode="Forms" />
试试,我也不知道,我的项目是这个设置

62,046

社区成员

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

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

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

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