I had ASP.Net configured for windows authentication using SQLExpress on the local machine and is working fine.
Now I had to move to the SQL Server 2012 located on a different machine (not the same box as IIS 7 running on Windows Server 2008 R2) and I have followed the instructions given in this link http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx
I ran the aspnet_regsql.exe tool to configure the database and then all the issues started.
1. Using the connection string as <add name="LocalSqlServer" connectionString="Data Source=[ServerName]; Initial Catalog=[DatabaseName];Integrated Security=True" providerName="System.Data.SqlClient" /> and run the app I get the error
System.Data.SqlClient.SqlException: Login failed for user 'Domain\MachineName$'
and I cannot provide access to the database for 'Domain\MachineName$'
2. When I try to access the Provider tab on Website administration tool I get the following error
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
I have run the aspnet_regsql.exe thrice but still get the same error.
3. I have followed the link given below to add membership details to the web.config file with no luck
I would appreciate if somebody can give me instructions specifically to configure windows authentication using IIS 7, asp.net 2.0, SQL SErver 2012, VS2008 with the SQL Server 2012 being in a different box.
Please provide me the connection string also, as I get very easily confused while creating the connection string in web.config file