Problem with SQL now site is published
Posted on 2006-11-24
I have had similar problems with his before when uploading a site with a database. I have a single page site that has a SQL connection to a SQL 2000 database. Nothing complicated at all. The site works fine locally on my machine when I run it, but when published to either my local IIS 5 server or my companies II6 server I get the following message when opening the page.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
This is my connection string from within the web.config file:
<add name="CReqDBConnectionString" connectionString="Data Source=EQ-WEB01;Initial Catalog=CReqDB;Integrated Security=True"
And this is it within the SQLDataSource Control on the page:
Data Source=EQ-WEB01;Initial Catalog=CReqDB;Integrated Security=True
Thanks for all your help