Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Security Roles ProblemSecurity Roles Problem
Previous
 
Next
New Post
12/13/2012 4:06 AM
 

Hi all!

When i am trying add user to Security Roles (ADMIN->Security Roles->Products(My Role Group)->Manage Users in this Role): I have 

Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: format ---> System.ArgumentNullException: Value cannot be null. Parameter name: format at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.String.Format(String format, Object arg0, Object arg1) at DotNetNuke.Modules.Admin.Security.SecurityRoles.grdUserRoles_ItemCreated(Object sender, DataGridItemEventArgs e) --- End of inner exception stack trace ---
Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: format ---> System.ArgumentNullException: Value cannot be null. Parameter name: format at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.String.Format(String format, Object arg0, Object arg1) at DotNetNuke.Modules.Admin.Security.SecurityRoles.grdUserRoles_ItemCreated(Object sender, DataGridItemEventArgs e) --- End of inner exception stack trace ---
Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: format ---> System.ArgumentNullException: Value cannot be null. Parameter name: format at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.String.Format(String format, Object arg0, Object arg1) at DotNetNuke.Modules.Admin.Security.SecurityRoles.grdUserRoles_ItemCreated(Object sender, DataGridItemEventArgs e) --- End of inner exception stack trace ---
Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: format ---> System.ArgumentNullException: Value cannot be null. Parameter name: format at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.String.Format(String format, Object arg0, Object arg1) at DotNetNuke.Modules.Admin.Security.SecurityRoles.grdUserRoles_ItemCreated(Object sender, DataGridItemEventArgs e) --- End of inner exception stack trace ---
Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: format ---> System.ArgumentNullException: Value cannot be null. Parameter name: format at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.String.Format(String format, Object arg0, Object arg1) at DotNetNuke.Modules.Admin.Security.SecurityRoles.grdUserRoles_ItemCreated(Object sender, DataGridItemEventArgs e) --- End of inner exception stack trace ---


IN EVENT LOG :

ModuleId: 364
ModuleDefId: 12
FriendlyName: 
ModuleControlSource: DesktopModules/Admin/Security/SecurityRoles.ascx
AssemblyVersion: 5.5.1
PortalID: 0
PortalName: *******
UserID: 289
UserName: super
ActiveTabID: 47
ActiveTabName: Security Roles
RawURL: /Admin/SecurityRoles/tabid/47/ctl/User Roles/mid/364/RoleId/65/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.*************.com/Admin/SecurityRoles/tabid/47/ctl/Edit/mid/364/RoleID/65/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.202.0 Safari/532.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: e3794315-a52d-4c94-bf6e-96422765f4b0
InnerException: Value cannot be null. Parameter name: format
FileName: 
FileLineNumber: 0
FileColumnNumber: 0
Method: System.String.Format
StackTrace: 
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: format ---> System.ArgumentNullException: Value cannot be null. Parameter name: format at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.String.Format(String format, Object arg0, Object arg1) at DotNetNuke.Modules.Admin.Security.SecurityRoles.grdUserRoles_ItemCreated(Object sender, DataGridItemEventArgs e) --- End of inner exception stack trace ---
Source: 
Server Name: **********


 
New Post
12/14/2012 5:09 AM
 

I found where is a problem, but can't to fix that.

Private Sub grdUserRoles_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles grdUserRoles.ItemCreated
Try
Dim item As DataGridItem = e.Item

Dim cmdDeleteUserRole As ImageButton = e.Item.FindControl("cmdDeleteUserRole")
Dim role As UserRoleInfo = DirectCast(e.Item.DataItem, UserRoleInfo)

If Not cmdDeleteUserRole Is Nothing Then

ClientAPI.AddButtonConfirm(cmdDeleteUserRole, String.Format(Localization.GetString("DeleteUsersFromRole.Text", LocalResourceFile), role.FullName, role.RoleName))


cmdDeleteUserRole.Attributes.Add("roleId", role.RoleID)

cmdDeleteUserRole.Attributes.Add("userId", role.UserID)


End If

Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub


where LocalResourceFile =/DesktopModules/Admin/Security/App_LocalResources/SecurityRoles/DesktopModules/Admin/Security/App_LocalResources/SecurityRoles/DesktopModules/Admin/Security/App_LocalResources/SecurityRoles/DesktopModules/Admin/Security/App_LocalResources/SecurityRoles/DesktopModules/Admin/Security/App_LocalResources/SecurityRoles
How can i change LocalResourceFile ????
please HELP
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Security Roles ProblemSecurity Roles Problem


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