I've managed to get the clubsite template from asp.net up and running, sorda (http://www.flysniper.com), I get a system error which I believe is related to the fact that my DB isn't working correctly.
I'm trying to configure it to work with ms sql server 2005 which is running on the same machine as the website.
I've followed the instructions of Scott Gu (http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx)
while trying to run aspnet_regsql.exe I get the following error
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql.exe -S XXXXXXXXXX
-U YYYYYYYY -P ZZZZZZZZZ -A all -d flysniper
Start adding the following features:
Membership
Profile
RoleManager
Personalization
SqlWebEventProvider
.................
An error has occurred. Details of the exception:
An error has occurred while establishing a connection to the server. When conne
cting to SQL Server 2005, this failure may be caused by the fact that under the
default settings SQL Server does not allow remote connections. (provider: Named
Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Unable to connect to SQL Server database.
I have tried several different things (shooting in the dark) to resolve this issue, including:
verifing that port 445 is avaliable on the firewall per these directions:http://support.microsoft.com/default.aspx?scid=kb;en-us;839269
configured SQL server 2005 to allow remote connections following these directions:http://support.microsoft.com/kb/914277
with no change in results.
Anything else I should look into?
Thanks in advance,
Mike
I get that message when I forget to start sql server before trying to connect to the website.
|||
LockH - thanks for your response, I have confirmed that the SQL Service is up and running.
UPDATE: I have managed to get the aspnet_regsql.exe to run and the tables are created.
I have tried to set the connection string up correctly: <addname="ClubSiteDB"connectionString="Data Source=StormTrooper\FlySniper;Initial Catalog=FlySniperDev;Persist Security Info=True;User ID=XXXXXXXXXXXXX;Password=YYYYYYYYYYYY;"providerName="System.Data.SqlClient"/>
I think its just a switch somewhere that I'm missing.
I have set up a developer website for testing purposes, please usehttp://dev.flysniper.com/flysniperClubSite to see the actual error.
TIA,
Mike
|||Did you create the tables in the database on the server, or did you copy the database files from your dev machine?
If you copied the database files onto that machine, did you go into database admin and attach the database files to that server?
|||
The tables were created directly on the server. It's my personal machine so I have direct access to it.
Thanks for you time,
Mike