The requested page cannot be accessed because the related configuration data for the page is invalid
2014-12-04 08:58
519 查看
在开发过程中使用IIS Express调试Web程序,当打开网站时出现问题,显示如下的页面。造成这个问题的原因是,可能网站的Web.config中对于访问权限的控制与IIS Express自身的application.host中的配置出现问题。现在要做的是,就是根据提示,找到找到冲突的配置,这里是authentication的配置, 这个配置在\My Documents\IISExpress\config,具体路径可能会有变化,但是一般安装的时候都会把配置文件安装在My Documents中。
按照页面的提示,把有冲突的配置修改后,网站的访问就没有问题了。
![](https://img-blog.csdn.net/20141204085617218?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvc3VuZGFjaGVuZzE5ODk=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
以这个问题为例,这里是因为访问权限冲突,所以改掉这里就可以了。
按照页面的提示,把有冲突的配置修改后,网站的访问就没有问题了。
以这个问题为例,这里是因为访问权限冲突,所以改掉这里就可以了。
相关文章推荐
- [asp.net core]The requested page cannot be accessed because the related configuration data for the page is invalid.
- The requested page cannot be accessed because the related configuration data for the page is invalid
- The requested page cannot be accessed because the related configuration data for the page is invalid.
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- The state information is invalid for this page and might be corrupted解决办法
- asp.net中错误:"The state information is invalid for this page and might be corrupted."
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- "The state information is invalid for this page and might be corrupted"错误的一个解决办法
- 中了"The state information is invalid for this page and might be corrupted"的圈套!
- 'date' is an invalid value for the SoapElementAttribute.DataType property. The property may only be specified for primitive types.
- Debug 之 The state information is invalid for this page and might be corrupted
- 异常 The page you are requesting cannot be served because of the extension configuration
- OUI-10022:The target area /oracle/oraInventory cannot be used because it is in an invalid state.
- System.Web.HttpException: The file "~/xxx//Index.cshtml" cannot be requested directly because it cal
- System.Web.HttpException: The file "~/xxx//Index.cshtml" cannot be requested directly because it cal
- System.Web.HttpException: The file "~/xxx//Index.cshtml" cannot be requested directly because it cal
- System.Web.HttpException: The file "~/xxx//Index.cshtml" cannot be requested directly because it cal
- VS2010 + Sql Server Express 2008 R2 如何安装(兼谈错误:The database 'XXX' cannot be opened because it is version 661. This server support
- .net错误:Process performance counter is disabled,so the requested operation cannot be performed
- Page is already covered by another Data Binder. Cannot be covered by this Data Binder again