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
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.
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.
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.
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.
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)
End Sub
Public ReadOnly Property UserProfile() As ProfileCommon
Get
Return mobjProfileCommon
End Get
End Property
End Module
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.
If you would like the ability to just approve and deny users, you might consider using the user.aspx page from my source code. The Users.aspx page in the User Management project uses a custom profile which is defined in the web.config.
dtharby
Member
206 Points
42 Posts
Managing Users
Sep 15, 2006 05:02 PM|LINK
Hi All,
Downloaded and installed Jeremy Wadsworth's User Management System as per this thread http://forums.asp.net/thread/1314299.aspx
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
<system.web> <pages styleSheetTheme="Black"/> <namespaces> <clear/> <add namespace="System"/> <add namespace="System.Collections"/> <add namespace="System.Collections.Specialized"/> <add namespace="System.Configuration"/> <add namespace="System.Text"/> <add namespace="System.Text.RegularExpressions"/> <add namespace="System.Web"/> <add namespace="System.Web.Caching"/> <add namespace="System.Web.SessionState"/> <add namespace="System.Web.Security"/> <add namespace="System.Web.Profile"/> <add namespace="System.Web.UI"/> <add namespace="System.Web.UI.WebControls"/> <add namespace="System.Web.UI.WebControls.WebParts"/> <add namespace="System.Web.UI.HtmlControls"/> </namespaces>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.
rgds
Danny
jwadsworth
Contributor
2378 Points
542 Posts
Re: Managing Users
Sep 16, 2006 12:18 AM|LINK
Extended Personal Site Starter kit
dtharby
Member
206 Points
42 Posts
Re: Managing Users
Sep 16, 2006 07:59 AM|LINK
Hi JW
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.
Rgds
Danny
dtharby
Member
206 Points
42 Posts
Re: Managing Users
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 -
jwadsworth
Contributor
2378 Points
542 Posts
Re: Managing Users
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.
Extended Personal Site Starter kit
dtharby
Member
206 Points
42 Posts
Re: Managing Users
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.
Thanks again
jwadsworth
Contributor
2378 Points
542 Posts
Re: Managing Users
Sep 17, 2006 01:17 AM|LINK
Extended Personal Site Starter kit
thelane
Member
95 Points
19 Posts
Re: Managing Users
Sep 17, 2006 04:43 PM|LINK
Hi there,
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)
End Sub
Public ReadOnly Property UserProfile() As ProfileCommon
Get
Return mobjProfileCommon
End Get
End Property
End Module
Error says "Type ProfileCommon is not defined"
Where is/should this be defined at?
dtharby
Member
206 Points
42 Posts
Re: Managing Users
Sep 17, 2006 07:01 PM|LINK
Hi,
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.
HTH
Dan
jwadsworth
Contributor
2378 Points
542 Posts
Re: Managing Users
Sep 18, 2006 01:33 AM|LINK
Extended Personal Site Starter kit