Thanks for your efforts last week.
We still have problems with logon failing intermittently - you get past the login screen, but you are actually logged in as an anonymous user, so some pages with access restricted by roles are unavailable.
I think the problems happen less often, and the chances of a successful login are higher, (I don't have statistics to justify that, but it does seem better) but still could not go live like this.
Over the weekend I did some research on authentication etc, and found some useful material posted by Scott Guthrie, who runs ASP.NET and Visual Studio development at Microsoft - he has an ASP.NET Tips, Tricks and Gotchas page. I made a couple of changes to the web.config bsed on his advice - made sure to specify ApplicationName, and put < clear/ > at start of providers. This didn't make much difference to reliability, but when anonymous users get created they now get created with the right application name, instead of "/".
Scott also published an example that demonstrates the complete login authorisation, membership, roles, and profiles system. The example covers login, collect personal information and store it in the profile, recover forgotten password, change your own password, with 5 simple pages and 25 lines of code. I downloaded that and installed it in a fresh subdomain, changing only the connection string to get it conected to the database.
So I copied the pages into a new folder in the dogs app.
It works some of the time, and sometimes it doesn't, same as my original pages.
We have seen a new server error page this week, "validation of viewstate MAC failed". It seems to happen when you come back to a session that has ben idel for a while and try to log off, or go to another page. That has happened with the original site and with the new example pages in the new sampleprofile subdomain. I must admit I have no idea what the message is about.
I still wonder if anybody else is using these asp.net login, roles and profiles on this server?
|