帮我看看这个配置文件,如何设置
web.config文件
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="dsn" value="server=localhost;uid=netfriend;password=19771231;database=cnpg_news" />
<add key="dsn1" value="server=localhost;database=cnpg_news;Trusted_Connection=no;user id=netfriend;pwd=19771231;" />
</appSettings>
<system.web>
<compilation defaultLanguage="C#" debug="true"/>
<identity impersonate="true" userName="administrator" password="197869"/>
<pages validateRequest="false" />
<customErrors mode="Off" />
<globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312" />
<httpRuntime maxRequestLength="5655648" />
<authentication mode="Windows" />
<sessionState mode="InProc" cookieless="true" timeout="80"/>
<trace enabled="true"/>
</system.web>
</configuration>
“/webnews”应用程序中的服务器错误。
--------------------------------------------------------------------------------
配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。
分析器错误信息: 未能从配置文件中指定的凭据创建 Windows 用户标记。源自操作系统的错误“客户没有所需的特权。 ”
源错误:
行 9: <system.web>
行 10: <compilation defaultLanguage="C#" debug="true"/>
行 11: <identity impersonate="true" userName="administrator" password="197869"/>
行 12:
行 13: <pages validateRequest="false" />
源文件: G:\NETServices\ado+asp\WebNews\web.config 行: 11
我的系统登陆权限 userName="administrator" password="197869"/>没有错啊