怎么会事?极端郁闷中
昨天装了 .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
倒霉呀,搞了一天也没搞好,心情烦躁,极度郁闷,面临崩溃,望高人指点一二