UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > Windows Shared Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2008, 16:38
new member
 
Join Date: Feb 2008
Posts: 3
Default asp.net membership, role and profile providers

Is anybody successfully using the standard asp.net 2 features for membership and roles and user profile fields?

I am using the standard login controls that come with asp.net, and cannot get them to work consistently on my eukhost site although they work ok on our own machines.

A standard feature of asp.net 2 is that you can require users to have certain roles in order to access specific folders or pages on the site, but users dont pick up their roles when they log on.

You have to enter a valid username and password, or else you get an error message. But if when do enter a valid id and password, although it takes you from the login form to the home page, very often you are not properly logged on.
The login link should change to a "Welcome username" message and a logout link, but it does not, it still shows the login link. When this happens, you cannot access the restricted features, and pages that use user profile values will give errors.

Has anybody out there managed to get these features set up correctly?
Reply With Quote
  #2 (permalink)  
Old 08-02-2008, 08:45
System Administrator
 
Join Date: Dec 2006
Posts: 587
Thumbs up

Hi Lock, Apologies for replying late. I was working on your issue since you placed the ticket [JPT-66113-703] & replied to it approx an hour ago
__________________

Rock _a.k.a._ Jack L.

http://www.eUKhost.com
Windows Hosting || Windows Reseller Hosting
Reply With Quote
  #3 (permalink)  
Old 13-02-2008, 12:08
new member
 
Join Date: Feb 2008
Posts: 3
Default

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 &lt clear/ &gt 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?
Reply With Quote
  #4 (permalink)  
Old 13-02-2008, 15:49
eUK-Martin's Avatar
Windows System Administrator
 
Join Date: Nov 2005
Location: Earth
Posts: 393
Default

Hello,

We have had a long discussion in the ticket and to be frank it seemed to be a browser issue to us as we were able to login fine in Mozilla all the time and also in IE6 & 7 after we had enabled cookies for the site. We do not see it be an issue we the server but we the settings of your site.

I really hope that one of the ASP experts can explain this well.

Regarding the "validation of viewstate MAC failed", it is nothing but a bug in ASP which can be corrected with few changes in the script. You have have a look at the link below, it is one from the ASP .NET forums.

LINK IS HERE
__________________
Martin
Windows System Admin.


Windows VPS Hosting - Windows Dedicated Server - Web Hosting Tutorials

Email :: windows @ eUKhost.com AND support @ eUKhost.com
Reply With Quote
  #5 (permalink)  
Old 14-02-2008, 14:16
new member
 
Join Date: Feb 2008
Posts: 3
Default

Cannot log in with Internet Explorer today, though we can with Firefox.
Client is delighted that he can target the 10% of the market who do not use IE.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:17.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles