Hi Everyone -
I've had the same problem of getting the site to work. I think I have joy though... the site seems to be working! :) I had the same error message (error: 26 - Error Locating Server/Instance Specified) posted here and elsewhere.
Here is my config:
XP Home
VS2005
SQLServer Enterprise 2005 (upgrade from SqlExpress: NOTE THIS IS IMPORTANT!)
Anyway I had trouble getting the site to run and I followed Chris' advice:
1. Add the [machine\ASPNET] and [NT AUTHORITY\NETWORK SERVICE] as logins
2. Attach the database (wroxunited.mdf), makeing ASPNET the db_owner
3. Add [machine\ASPNET] and [NT AUTHORITY\NETWORK SERVICE] as database users
4 Change the connection strings in web.config. That should be all for the WroxUnited database - then there's the providers, which can either be added to WroxUnited db or to a separate one.
5. Run aspnet_regsql (in the framework directory), to add the user/roles/etc tables/procs to he appropriate datbase
6. Add provider sections in web.config, for <membership>, <roles>, <profile>, setting the default provider for each to the new provider added. These providers should point at the ConnectionString for the database (so either WroxUnited or a new conn str if using another database).
I had no problem adding NT Authority\Network Service. The trick for adding this user is pretend that "Network Service" is part of the local machine domain, and don't use "NT Authority" as a domain.
I also had problems with steps 5 and 6. After much consternation and research on MSDN, I discovered some legacy code from SQL Express that wanted to link ASP2.0 to a non-existent SQL Express database in my machine.config file! Argh! :(
Here is a snippet from my modified machine.config:
<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=tlaloc2;Integrated Security=SSPI;Initial Catalog=ASPNET2.0" providerName="System.Data.SqlClient" />
</connectionStrings>
So basically I modified the connection string to reflect the database I set with aspnet_regsql utility.
Hope this helps!
Luis