PDA

View Full Version : asp.net membership control



eldred
2010-10-22, 08:51 PM
Hi,

I made a website, locally, using the asp.net membership functionnality. I want a website where people can register, setup their password, etc.

Problem is, now that I uploaded my website here, those functionnality do not work anymore. I'm hardly surprised, as I had suspicion that the DB containing those member info (an automatically created .mdf in my app folder) would probably not work on an online setting.

But my question is... is there any way to use those very nice membership control, or I kinda have to use the app (the zipped user.xml and other aspx files ) which seem to me a very poor alternative to my current setup.

I obviously know very little about membership feature on myhosting, if someone could explain to what's the current best way to implement this, I'd be very grateful.

thanks,

Eldred

suwunk
2010-10-24, 10:40 PM
Hi Eldred,

What membership providers do you use? ActiveDirectoryMembershipProvider or SqlMembershipProvider?
Have you tried following MS tutorial? How To: Use Membership in ASP.NET 2.0 (http://msdn.microsoft.com/en-us/library/ff648345.aspx)

You use the SQLMembershipProvider with forms authentication if your user information is stored in SQL Server. In most cases, this occurs when you have an intranet and user information is application-specific or when the application is Internet facing and the users do not have Active Directory accounts.

When you install ASP.NET, the Machine.config file for your server includes configuration elements that specify SQL Server membership providers. By default, the SQL provider is configured to connect to the local instance of SQL Server.

Cheers