Project Build
When building projects using Flare, you might see the following issues.
[Menu Proxy — Headings — Online — Depth3 ]
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.
-
Select Project > Clean Project.
A message displays, asking you to confirm the deletion of the Output folder and its files.
- 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.
- Open the Flare project folder in the Windows Explorer.
- Open the Project folder.
- Select the Users folder and press Delete on the keyboard.
- 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.
- Select File > Options. The Options dialog opens.
- Select the Build tab.
-
Click Enable byte order mark to add a check mark.
- 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
- Save and close the project.
- Reopen the project and build it.
Solution 2
- Save and close the project, then restart your computer.
- 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.
- Close the project in Flare.
- Open the project folder in Windows Explorer.
- Navigate to the project's Analyzer folder and delete it.
- 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.