问题
I setup aspnet_regsql in my SQL Server called SYM\SQLEXPRESS but it is in the remote computer. As you know, there are some tables created automaticly (Users, Roles, Membership etc). How can I introduce asp.net login controls to this database. Should I change something in web.config ? (SYM means 10.10.10.8)
I wathched this video series. http://www.asp.net/security/videos
They just drag&drop login controls in to page. And the database created automaticly. But created their local machine. My question is how can I connect with ASP.NET Login Controls and aspnet_regsql database which I have already exists in my remote computer?
回答1:
- Alternativly, go
C:\Windows\Microsoft.NET\Framework\v4.0.30319folder. - Run
aspnet_regsql.exe - Write Server Name:
YourServerMachine\SQLExpress - Select Existing Database:
YourTargetDBName(which you already have) - Click Finish.
- Open WebSite in Visual Studio 2010.
Make Changes in `Web.Config

Using Visual Studio 2010 Go to
Websitetab.Click on
ASP.NET ConfigurationYou can change your security and provider settings.
来源:https://stackoverflow.com/questions/7785026/asp-net-how-can-i-introduce-aspnet-regsql-to-login-controls
