asp.net程序发布后出现问题在发布前,运行时,登陆页面可以正常登陆。但是发布到iis后,登陆界面无法登陆。是不是数据库连接失败啊。都困扰了好几天,请问这是什么原因啊,真的谢谢大家了数据库sql2005
连接数据库配置:<add key="conn" value="Data Source=PC-200907180953\SQLEXPRESS;Initial Catalog=hotel;Integrated Security=sspi"/>
连接数据库配置:<add key="conn" value="Data Source=PC-200907180953\SQLEXPRESS;Initial Catalog=hotel;Integrated Security=sspi"/>
发布到本机的IIs 就不行了
IIS设置是否正确
Data Server=.\SQLEXPRESS;Initial Catalog=Northwind;User ID=sa;Password=sa
Data Server=.;Initial Catalog=Northwind;User ID=sa;Password=sa
Data Server=服务器名;Initial Catalog=Northwind;User ID=sa;Password=sa