为什么我的iis虚拟目录总是访问不成功?
为什么我的iis虚拟目录总是访问不成功?
我用的事winxp,装了iis,并把默认web 的home dir 设定到了 e:\wwwroot下面,ip地址是192.168.0.5,然后我在e:\wwwroot下面建立一个文件,test.html, 打开浏览器,在里面键入 http://192.168.0.5/test.html 访问没有问题。然后我在iis里面建立一个虚拟目录aaa, 然后再 aaa里面建立一个文件 aaa.html 打开浏览器,键入http://192.168.0.5/aaa/aaa.html 却显示下面的东西,好像是说那个目录不存在或者是没有权力访问。请问为什么呢?
Server Error in '/testcom' Application.
--------------------------------------------------------------------------------
Server cannot access application directory 'E:\vodwwwroot\testcom\'. The directory does not exist or is not accessible because of security settings.
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.Web.HttpException: Server cannot access application directory 'E:\vodwwwroot\testcom\'. The directory does not exist or is not accessible because of security settings.
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:
[HttpException (0x80004005): Server cannot access application directory 'E:\vodwwwroot\testcom\'. The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +256
[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +926
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0