November Happy Hour will be moved to Thursday December 5th.

Johan Björnfot
Jan 19, 2010
  6493
(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
Optimizely SaaS CMS + Coveo Search Page

Short on time but need a listing feature with filters, pagination, and sorting? Create a fully functional Coveo-powered search page driven by data...

Damian Smutek | Nov 21, 2024 | Syndicated blog

Optimizely SaaS CMS DAM Picker (Interim)

Simplify your Optimizely SaaS CMS workflow with the Interim DAM Picker Chrome extension. Seamlessly integrate your DAM system, streamlining asset...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Optimizely CMS Roadmap

Explore Optimizely CMS's latest roadmap, packed with developer-focused updates. From SaaS speed to Visual Builder enhancements, developer tooling...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Set Default Culture in Optimizely CMS 12

Take control over culture-specific operations like date and time formatting.

Tomas Hensrud Gulla | Nov 15, 2024 | Syndicated blog