Try our conversational search powered by Generative AI!

Johan Björnfot
Jan 19, 2010
  6339
(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 and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog

Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog