MVC - Getting Membership to Work

I have an MVC 1.0 application running VS2008. Brave!

I have the developer version of SQL 2005 installed.

I ran aspnet_regsql.exe to add the membership schema to my DB.

When I try to register a user, I get this error:

The user instance logon flag is not supported in this version of SQL Server. The connection will be closed.

I changed my machine.config file to point to my server and db. Also added LocalSqlServer connection string to the same web.config error.

Any ideas why this error occurs?

Malcolm

0


a source to share


1 answer


This is a misconfiguration. It looks like the connection string being used is trying to create or use a database that doesn't exist. Make sure the connection string points to the correct database. By default, Application Services (Membership, Profile, Roles) use the ApplicationServices connection string in the project's web.config file.



+1


a source







All Articles