事件查看器里面的代码,大家能看懂啊,估计就是这问题
Event code: 3008
Event message: A configuration error has occurred.
Event time: 2011-7-2 10:27:38
Event time (UTC): 2011-7-2 2:27:38
Event ID: 7cfdbffb1c1649df9924982e04a2ca9c
Event sequence: 2
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-1-129540472561875000
Trust level: Full
Application Virtual Path: /
Application Path: D:\web011\
Machine name: NOTEBOOK
Process information:
Process ID: 3732
Process name: aspnet_wp.exe
Account name: NOTEBOOK\ASPNET
Exception information:
Exception type: ConfigurationErrorsException
Exception 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. (D:\web011\pa01\web.config line 20)
Request information:
Request URL: http://localhost/pa01/install/index.aspx
Request path: /pa01/install/index.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: NOTEBOOK\ASPNET
Thread information:
Thread ID: 1
Thread account name: NOTEBOOK\ASPNET
Is impersonating: False
Stack trace: at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)
at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
at System.Web.Configuration.RuntimeConfig.get_Identity()
at System.Web.ClientImpersonationContext.Start(HttpContext context, Boolean throwOnError)
at System.Web.HttpApplication.OnThreadEnter()
at System.Web.HttpApplication.ResumeSteps(Exception error)