Question : ASP.NET MVS set up database problem.

Hi.

Just beginning to set up and get into MVC and I have immediately run into a problem...

I opened a new MVC project in Visual Studio 2008 Pro, tried to run the basic template project, chose the logon/register page, enterered my details and got a runtime error message in AccountsModels.cs:

Unable to connect to SQL Server database

Do I need to download a db from somewhere first, have I missed a step out the install ?

Answer : ASP.NET MVS set up database problem.

If you've already got SQL server installed change the connection string in your web.config file to point to a database on your local SQL server. The database you point to will need to have the membership components created using the reg_sql.exe command I detailed above.
Random Solutions  
 
programming4us programming4us