Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 19, 2006 07:51 AM by thelane
Sep 15, 2006 05:02 PM|LINK
Downloaded and installed Jeremy Wadsworth's User Management System as per this thread
However I have several build errors on the website, the first one being the used of <namespaces> under <system.web>.
There is no such 'variable' available in system.web
Second build error is that type 'ProfileCommon' is not declared and this is on GlobalMOD.vb and UserManager.vb
Has anyone else used this tool and if so did they run into these issues also.
Sep 16, 2006 12:18 AM|LINK
Sep 16, 2006 07:59 AM|LINK
Found the problem late last night. Bascially I tried to merge the web.config file with my one and this caused the problems.
When I inserted the web.config file from your kit and then replaced parts of my one all worked well.
Just some tidying up of themes needed now etc...
Thanks for your reply and I will let you know when I have it finished.
Sep 16, 2006 12:50 PM|LINK
Actually Jeremy, got an error when trying the edit a user (to approve).
In UserManager.vb, an error is produced in GetUserInfo when attempting to get the password -
Dim strUserName As String = username
Dim strPassword As String = userInfo.GetPassword() - this causes an exception 'Hashed Passwords cannot be decoded'
Dim strEmail As String = userInfo.Email
Dim strComments As String = userInfo.Comment
Any thoughts on this as I am stumped at the moment.
Sep 16, 2006 03:36 PM|LINK
The password format is set to Clear. You either need to go into the database and retype clear text passwords, or you need to change the PasswordFormat setting in the web.config to either Encrypted or Hashed. You would then need to remove all code that pertains
to retrieving, viewing, or editing the password.
Sep 16, 2006 09:09 PM|LINK
Thanks for the pointer Jeremy.
With your comments, I changed web.config to have hashed passwords and then received an error about non-autogenerated keys.
After some web searching and reading I found a website that enabled me to create a validationKey and decryptionKey (http://www.aspnetresources.com/tools/keycreator.aspx)
Once I added this to my web.config file under <system.web> and then removed all references for viewing, retrieving or editing the password (as you advised) and all appears to be well.
Sep 17, 2006 01:17 AM|LINK
Sep 17, 2006 04:43 PM|LINK
Mighty nice of you to provide this code to all. BTW, nice website too. I thank you for the code! I also downloaded your code to manage users and I only want the ability to Approve or set Active a new user so I took the Users.aspx pageand added it to my
project w/related code files, etc. All is fine and the only error I am getting is from here:
Public Module GlobalMOD
Dim mobjProfileCommon As ProfileCommon
Public Sub SetProfile(ByVal username As String)
mobjProfileCommon = ProfileCommon.Create(username, True)
Public ReadOnly Property UserProfile() As ProfileCommon
Error says "Type ProfileCommon is not defined"
Where is/should this be defined at?
Sep 17, 2006 07:01 PM|LINK
If you see my previous post, I replaced my web.config file with the once provided by JW in the UserManagement zip, making changes to connectionSettings etc.
This resolved the ProfileCommon problem.
Sep 18, 2006 01:33 AM|LINK