<{{Subtitle_Weight}} class="prominent-subhead {{Show_Subtitle}}"> {{Header_Subtitle}}

"RoleProvider for label K2 could not be found" error appears when searching for user

~~repeating-content.html~~
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

When searching for a user from K2 Management > Workflow Server > Server Rights, the following error appears:

"RoleProvider for label K2 could not be found"

Symptoms

The following error was found in the K2HostServer log:

"Error","System","2025","InternalMarshalError",
"SourceCode.Hosting.Server.Runtime.HostServerBroker.InternalMarshal",
"2025 Error Marshalling SourceCode.Hosting.Servers.SecurityManagement.ReloadRoleProvider,
Access to the path 'C:\Program Files (x86)\K2 blackpearl\Host Server\Bin\AdumError180214_3.log' is denied."

Troubleshooting Steps

The issue is caused by the K2 Service account not having admin rights on the K2 Server.  To resolve this, please add the K2 Service account to the Local Admin group.