Skip to main content

I am deploying my solution on to my production server and after getting everything installed and configured, I am creating my page with the workflow notifications.

When trying to add the Nintex Workflow 2013 --> My Workflow Tasks web part, it gives me the following error:

A Web Part or Web Form Control on this Page cannot be displayed or imported. The type Nintex.Workflow.ServerControls.WebParts.PendingMyApproval, Nintex.Workflow.ServerControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12 could not be found or it is not registered as safe.

I'm kinda confused as I've done this on my development box and everything went smoothly. I've checked settings to make sure they match on both servers.I've checked to ensure the Site collection features show that the Workflow web parts are switched on. I've even restarted the server and deactivated the features and re-enabled them.

Not sure what else I can try.

Thoughts and comments welcome.

Hi Activrob,

did you compare your web.config files? Maybe something got messed up while installing and the safecontrol entry is just missing.

Are other Nintex Webparts working as expected?

Cheers

Philipp


Hi Philipp,

Yes, the web.config file on the dev server shows the missing entries. Is it best practice to simply add the missing entries to the new server? I am going to try and redeploy the solution again on the production server to see if that fixes it. If that doesn't then I may have to try adding the entries to the web.config.


I think modifying the web.config file directly is never best practice wink.png

I think redeploying the solution or even trying to reinstall nintex might be the better approach. But regarding this msdn article, I would say modifying the file manually is supported by microsoft. Just make sure that you create a backup of the web.config before modifying it and you should be fine.

Cheers

Philipp


Just as a follow up, I went to the Central Admin and redeployed the Nintex workflow package to the Web Application and this time it registered the safe controls as required. This fixed the issue and I'm now able to add the workflow web parts.


Reply