无法访问请求的页面,因为页面的相关配置数据无效 [英] The requested page cannot be accessed because the related configuration data for the page is invalid

查看:135
本文介绍了无法访问请求的页面,因为页面的相关配置数据无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行没有web.config文件的ASP.NET应用程序时出现此错误。

I am getting this error when I try to run an ASP.NET application without a web.config file.


请求的页面无法访问因为页面的相关配置数据无效

The requested page cannot be accessed because the related configuration data for the page is invalid

因为我读过,我们可以在没有web配置文件的情况下运行.NET应用程序,但是当我尝试它时,却给了我错误。我在Windows 7机器上使用iis 7.

as I read, we can run .NET applications without web config files, but when I tried it is giving me the error. I am using iis 7 on windows 7 machine.

当我在inetpub / wwwroot中创建应用程序虚拟目录时,它工作正常。为什么没有其他目录位置?

When I create the application virtual directory inside inetpub/wwwroot it works fine. Why doesn't the other directory location?

推荐答案

这可能是一个原因:


如果
UNC目录中没有Web.config文件,则IIS 7.0使用为父
目录定义的规则
。对于在此方案中提供的
的Web内容,
工作进程标识必须具有对整个内容目录的
访问权限。
否则,Web请求被拒绝

If there is no Web.config file in the UNC directory, IIS 7.0 uses the rules that are defined for the parent directory. For the Web content to be served in this scenario, the worker-process identity must have access to the whole content directory. Otherwise, the Web request is rejected.

详细信息

这篇关于无法访问请求的页面,因为页面的相关配置数据无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆