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.

Issue

When attempting to edit a View from K2 Designer, the error below appears and the View continues to spin infinitely.

"The culture information failed to load [500] Internal Server Error (error)"

Image

Symptoms

  • To debug your web page, run a fiddler trace or a network trace using F12 Developer Tools from your browser while reproducing the issue, you should see a HTTP/1.1 500 Internal Server Error returned.

  • From the Web View of the erraneous request, it shows a configuration error 'Cannot add duplicate collection entry of type 'add' with combined key attributes 'users, roles, verbs' respectively set to Domain\UserName'. If you look at the Config Source, it points to the authorization rules configuration in the K2 Designer web.config file.

Image

Troubleshooting Steps

To verify and resolve the issue, kindly perform these steps:

1. Edit the K2 Designer web.config file (usually located in C:\Program Files (x86)\K2 blackpearl\K2 smartforms Designer), find the section below and check if the AccessType configuration is assigned to each user separately.

An example:

<add accessType="Allow" users="Domain\User" />
<add accessType="Allow" users="Domain\User" />
<add accessType="Allow" users="Domain\User" />

2. If so, merge all the users with a comma separation into 1 line of <add accessType="Allow"

For example:

<add accessType="Allow" users="Domain\User,Domain\User,Domain\User" />
Please remember to create a backup of the web.config file prior to making any modification.

3. Save and close the file.

4. Then, perform an IISRESET.

5. Try editing your View again. The error should disappear.