Johan Björnfot
Jan 19, 2010
  6585
(0 votes)

Workflow image generation failure

In EPiServer it is possible to view images of workflows. These images are generated on the server side by using the workflow designer (same designer as you see in Visual Studio).

On Windows7 or Windows 2008 R2 there might be an exception thrown during the image generation. The reason for this is that there is a bug (see Workflow Theme exception) in .NET that the class System.Workflow.ComponentModel.Design.WorkflowTheme has a static constructor that retrieves the location of the theme files from the registry but it doesn't catch the exception if there is an exception accessing the registry. In IIS7.5 the default account for an application pool is ApplicationPoolIdentity (compared to NetworkService which was the default account on IIS7) which does not have access to the registry.

Workarounds

Below are two workaround alternatives:

  • Change the application to run under another account, e.g. NetworkService.
  • Add permission for IIS APPPOOL\DefaultAppPool on registry key Computer\HKEY_USERS\.Default

You do this by rightclick on the node in regedit and selecting “Permissions”. Then you click on “Add…” and in the dialog you type in IIS APPPOOL\DefaultAppPool in the text field for object name and then press “Check Names”. Then you press “OK” and select “Full Control” and press “OK”.

NOTE: You may have to restart the application (e.g. through IISReset) before the registry changes has effect. In one case I had to set the application to run under NetworkService and then set it back to DefaultAppPool before the change took action.

Jan 19, 2010

Comments

Please login to comment.
Latest blogs
Boosting Graph Query Performance with Stored Templates

Stored Templates offer a solution by pre-generating and storing translated queries. This bypasses the time-consuming translation process, leading t...

Jonas Bergqvist | Feb 27, 2025

Exploring Optimizely SaaS CMS – What’s New & How to Accelerate your Build

In my latest video, I take a fresh look at Optimizely SaaS CMS , covering some of the recent improvements aimed at enhancing the editor experience....

Minesh Shah (Netcel) | Feb 27, 2025

Adaptive Images with Optimizely CMP

Images from Optimizely CMP can now be seamlessly integrated into Optimizely CMS through Adaptive Images, with the all same features that web editor...

Ted | Feb 27, 2025 |

Using the 1996 text-based Browser 'Links' to optimize website accessibility

Use a text-based browser from the late 1990s to improve the accessibility of your modern Optimizely website!

Tomas Hensrud Gulla | Feb 25, 2025 |