web.config配置问题
我做了几个页面,调试都没有问题,但是在web.config文件中加入
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name=".ASPXAUTH"></forms>
</authentication>
之后报错:
HTTP 错误 500.19 - Internal Server Error
无法访问请求的页面,因为该页的相关配置数据无效。
详细错误信息:
模块 IIS Web Core
通知 未知
处理程序 尚未确定
错误代码 0x80070032
配置错误 无法读取配置节“authentication”,因为它缺少节声明
配置文件 \\?\c:\users\ran\documents\visual studio 2012\Projects\news\web.config
请求的 URL http://localhost:55523/login.aspx
物理路径
登录方法 尚未确定
登录用户 尚未确定
请求跟踪目录 C:\Users\Ran\Documents\IISExpress\TraceLogFiles\
我是win7的机器,装了VS express 2012 for web,完整的web.config如下:
<?xml version="1.0"?>
<configuration>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name=".ASPXAUTH"></forms>
</authentication>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<httpRuntime/>
</system.web>
<appSettings/>
</configuration>
求高手解决!!!
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name=".ASPXAUTH"></forms>
</authentication>
之后报错:
HTTP 错误 500.19 - Internal Server Error
无法访问请求的页面,因为该页的相关配置数据无效。
详细错误信息:
模块 IIS Web Core
通知 未知
处理程序 尚未确定
错误代码 0x80070032
配置错误 无法读取配置节“authentication”,因为它缺少节声明
配置文件 \\?\c:\users\ran\documents\visual studio 2012\Projects\news\web.config
请求的 URL http://localhost:55523/login.aspx
物理路径
登录方法 尚未确定
登录用户 尚未确定
请求跟踪目录 C:\Users\Ran\Documents\IISExpress\TraceLogFiles\
我是win7的机器,装了VS express 2012 for web,完整的web.config如下:
<?xml version="1.0"?>
<configuration>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name=".ASPXAUTH"></forms>
</authentication>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<httpRuntime/>
</system.web>
<appSettings/>
</configuration>
求高手解决!!!
...全文
相关推荐
IIS7.5下的web.config 404配置的一些问题
本文介绍一个关于IIS环境下web.config配置的经验问题。在IIS7.5中添加配置404页面时遇到了一些问题与解决方法,需要的朋友可以参考下
IIS7.5提示无法写入配置文件web.config的解决方法
主要介绍了IIS7.5提示无法写入配置文件web.config的解决方法,需要的朋友可以参考下
关于虚拟目录继承根Web.Config的问题解决办法
关于虚拟目录继承根Web.Config的问题解决办法
asp.net access web.config denied
如果出现这个问题,最好首先检查一下ASPNET的帐号,是否有访问权限。
動態修改web.config
動態修改web.config,包括在頁面中修改和在WebService中修改的方法。


