unhandled exception modifying anonymous user.

rated by 0 users
This post has 2 Replies | 0 Followers

Top 500 Contributor
Posts 57
Points 575
Roberto Posted: Thu, Jul 20 2006 4:57 PM

I know you're warned not to do this, but you're also told to assign an avatar to the anon user in the template picker for photos...

Modifying the anonymous user by adding a template causes an exception that isn't logged as far as I can see. If you're really not supposed to change anything for the anon user, perhaps it could be locked or at least, the notes for the photo templates need updating and the error message could use being a bit more polite than throwing an exception like this ;-)

Turning off custom errors revealed this little gem:

 The parameter 'Email' must not be empty. Parameter name: Email
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: The parameter 'Email' must not be empty. Parameter name: Email

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: The parameter 'Email' must not be empty.
Parameter name: Email]
   Microsoft.ScalableHosting.Security.SecUtility.CheckParameter(String& param, Boolean checkForNull, Boolean checkIfEmpty, Boolean checkForCommas, Int32 maxSize, String paramName) +219
   Microsoft.ScalableHosting.Security.SqlMembershipProvider.UpdateUser(MembershipUser user) +148
   Microsoft.ScalableHosting.Security.MembershipUser.Update() +21
   Microsoft.ScalableHosting.Security.Membership.UpdateUser(MembershipUser user) +12
   CommunityServer.MemberRole.CSMembership.Update(IMembershipUser user) +22
   CommunityServer.Data.UserProviderManager.Update() +172
   CommunityServer.Data.SqlCommonDataProvider.CreateUpdateDeleteUser(User user, DataProviderAction action, CreateUserStatus& status) +122
   CommunityServer.Users.UpdateUser(User user) +137
   CommunityServer.ControlPanel.Membership.UserEdit.Update(User userToEdit) +2868
   CommunityServer.ControlPanel.Membership.UserEdit.Update_Click(Object sender, EventArgs e) +57
   CommunityServer.ControlPanel.Membership.UserEdit.UpdateAvatar_Click(Object sender, EventArgs e) +92
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1292


Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

Top 25 Contributor
Posts 2,115
Points 27,605
MVPs

I think the reason is obvious from the error.

You can't suppose an Anonymous user as a normal user.  As you can't provide an email or many other field for a user you can't assign an avater to it or do several other operations on it.

  • | Post Points: 20
Top 500 Contributor
Posts 57
Points 575
Roberto replied on Sat, Jul 29 2006 12:41 PM

I wouldn't argue with you if you say that you're not supposed to do that. However, as I said in my original post

If you're really not supposed to change anything for the anon user, perhaps it could be locked or at least, the notes for the photo templates need updating and the error message could use being a bit more polite than throwing an exception like this ;-)

I don't really mind if people can edit the user or not, but if you can't then this isn't the best way of handling it.     

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com