Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationRequired Profile Properties Breaks LoginRequired Profile Properties Breaks Login
Previous
 
Next
New Post
11/23/2014 7:33 AM
 
I am running DNN 7.3.4. I have a required user profile property. Everything works fine if the user registers themselves, but if I create the user as the admin and they try to login they get an error. Here is the text from the error log:
System.FormatException occurred
HResult=-2146233033
Message=Input string was not in a correct format.
Source=mscorlib
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
at System.Convert.ToInt32(Object value)
at DotNetNuke.UI.WebControls.DNNListEditControl.RenderViewMode(HtmlTextWriter writer)
at DotNetNuke.UI.WebControls.EditControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at ASP.desktopmodules_admin_security_profile_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\uujec\DesktopModules\Admin\Security\Profile.ascx:line 8
InnerException:
 
New Post
11/23/2014 9:08 AM
 
Further testing shows that adding the required flag on a profile property does not break logins for users who have logged in previously. In that situation it will stop and ask the user to fill in the missing properties. But if the user was created by an admin account and they have never logged in, then when they try to log in it doesn't ask them to fill in the profile properties. It just throws the error above.
 
New Post
11/23/2014 9:30 AM
 

This is the code where the error is occurring in Profile.ascx:

function setUpProfile() {
    $('.dnnButtonDropdown').dnnSettingDropdown();
    $('#<%=ProfileProperties.ClientID%>').dnnPanels();
}

The error is "Input string was not in a correct format".  The property is just a text field, not a date or int, so I don't understand why it's saying that the it's not in a correct format.

 
New Post
6/4/2015 5:44 AM
 
Turns out that this issue was related to the following bug in version 7.3.4:
https://dnntracker.atlassian.net/brow...
Upgrading to version 7.4.2 throws errors, so that wasn't an option for me.
I had to remove my required properties via SQL since removing via the user interface does not work:
Update ProfilePropertyDefinition set Required = 0 where Required = 1
 
New Post
6/4/2015 5:44 AM
 
Turns out that this issue was related to the following bug in version 7.3.4:
https://dnntracker.atlassian.net/brow...
Upgrading to version 7.4.2 throws errors, so that wasn't an option for me.
I had to remove my required properties via SQL since removing via the user interface does not work:
Update ProfilePropertyDefinition set Required = 0 where Required = 1
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationRequired Profile Properties Breaks LoginRequired Profile Properties Breaks Login


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out