Project Build

When building projects using Flare, you might see the following issues.

Access to Temp Directory Error

Problem

When building a Flare project, the following error displays: Internal error: Access to the temp directory is denied. Identity under which XMLSerializer is running does not have sufficient permission to access the temp directory.

Cause

This error is a result of Flare not being able to write to a temporary file or directory.

Solution 1

Perform the following steps to clean your output files.

  1. Select Project > Clean Project.

    A message displays, asking you to confirm the deletion of the Output folder and its files.

  2. Click OK.

For more information about cleaning projects, see Cleaning (Deleting) Output Files.

Solution 2

Perform the following steps to delete the Users folder in the Flare project folder.

  1. Open the Flare project folder in the Windows Explorer.
  2. Open the Project folder.
  3. Select the Users folder and press Delete on the keyboard.
  4. Reopen the project in Flare and build the project.

Solution 3

Restart your computer.

Solution 4

Uninstall Microsoft .NET Framework and reinstall the latest version.

Solution 5

Check any anti-virus programs you may be running on your computer. Make sure that it allows Flare to write to temporary files and directories. Most of these types of programs have an exception list. Add Flare.exe to that list.

Surrogate Pair is Invalid

Problem

When attempting to build a web target, Flare displays the following error message: Internal error: The surrogate pair (0xDBC0, OxDBC0) is invalid. A high surrogate character (0xD800 - 0xDBFF) must always be paired with a low surrogate character (0xDC00 - 0xDFFF).

Cause

Byte Order Mark (BOM) is required for certain characters to be read. The error occurs because the registry has not turned on the BOM for the compiler when the project is being built.

Solution

Turn on BOM using the Options dialog. This enables BOM in your registry.

  1. Select File > Options. The Options dialog opens.
  2. Select the Build tab.
  3. Click Enable byte order mark to add a check mark.

  4. Click OK.

System Out of Memory

Problem

Flare displays the following error when building a project: Internal Error: Exception of type 'System.OutOfMemoryException' was thrown.

Cause

This is caused because Flare has run out of allocated memory.

Solution 1

  1. Save and close the project.
  2. Reopen the project and build it.

Solution 2

  1. Save and close the project, then restart your computer.
  2. Open the project and build it.

Solution 3

Consider dividing up your project into smaller projects.

Solution 4

Delete the Analyzer folder from the Flare project. This removes the corrupted Analyzer database. Flare then generates a new database the next time you open the project.

  1. Close the project in Flare.
  2. Open the project folder in Windows Explorer.
  3. Navigate to the project's Analyzer folder and delete it.
  4. Open the project in again Flare and build it.

Solution 5

Use the command line to build the project. For steps on how to build the project in this manner, see Building and Publishing Targets Using the Command Line.