I build a small application using VS 2005. The application just builds a report using basic Select statement from SQL Server db. Here is my problem:
When I tried to run the application using VS 2005 by pressing F5 . The applicaiton launches using VS webserver and everything test fine. But when I put the site in IIS created website . I get an error "Login failed for user '<serverName>\<userName>
In my connection string I have Integrated Security = SSPI
Please suggest.
Thanks
Thismight be the problem (if the IIS created website you mentioned is on another machine).
On your machine, the "user" that logs into SQL Server is MYMACHINE\ASPNET.
When you deploy to another machine, the "user" that is trying to log into SQL Server is OTHERMACHINE\ASPNET. Maybe the other machine isn't aware of that "user"
No comments:
Post a Comment