Cannot get ASP security to work with my web site

Discussion in 'Getting started' started by wmgraham, Aug 18, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. If anybody has any example of aspnet authentication working inthe DASP environment, I would be thankful if you could share how you did it. (I am using Asp.Neet 3.5)

    I have the most simple rudimentary application that I created solely for the purpose of getting aspnet authentication to work on my app at DASP.

    I have a SQL2005 DB. I used the utility to create the aspnet_Applications, aspnet_Users, etc. tables.

    I built an application on my local computer, pointing it in web.config to my SQL DB at DASP. In web.config I switched authentication mode to "Forms" and defined Domain, etc. I set up the connection string for "LocalSqlServer" and tested it successfully. I defined a membership provider in web.config and defined the connection string and applicationName, etc. I also added a machineKey definition in my web.config.

    When I FTP my app to DASP, I can register and login successfully (and I can look in the DB and see that the registrations and the lastAvtivityDate are updating as they should), but the LoginStatus and LoginView controls are not working.

    I would be greatly appreciative of any working example using aspnet authentication on a server as DASP.

    Thanks in advance.
     
  2. Hi,
    On DASPTV.com I've created a Webcast showing how to use the command prompt to register the SQL Server membership objects, rather than using the same Wizard locally.
    The advantage is you don't have to sync anything, the objects will be created on your remote SQL Server for your local code, then the only thing you need to do is sync your code files, not your SQL Server objects.

    The reason I'm mentioning this is; Most of the time when I help DASP customers with this they have used the Wizard locally and some of the SQL Server objects do not exist on their remote SQL Server, and it is very difficult for them to determine what is wrong.

    If you are certain your SQL Server objects are intact the next thing is to make sure your code files are all in sync.

    As for code examples...have you seen the code samples in both VB and C# in the Learning section of http://asp.net ?
    All the best,
    Mark
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page