跪求VS2005+MSSQL2K能人高手帮帮小弟解决数据库的问题
我用VS2005+MSSQL2K开发网页,语言用的是C#,数据库连接字符串定义在WEB.Config文件里,如下所示:
<appSettings>
<add key="connstr" value="Data Source=localhost;Initial Catalog=sfstk;Integrated Security=True"/>
</appSettings>
<connectionStrings>
<add name="connstr" connectionString="Data Source=localhost;Initial Catalog=sfstk;Integrated Security=True"/>
</connectionStrings>
程序在VS2005中能够正常运行,但是在IIS中,只要运行与数据操作有关的页面就出错,比如说SqlDataReader sdr=……;
我测试了sdr的值为NULL。
我的数据库是Wwindows的身份验证,操作系统是XP SP2,是不是我的数据库配置不对,还是怎么的,求大家帮帮忙,整了好久都没有解决,急死人了。