---
title: "Frequently Asked Questions"
canonical: https://www.graphicsmill.com/docs/gm/frequently-asked-questions.htm
product: "Graphics Mill"
---

# Frequently Asked Questions
 
This topic contains answers for frequently asked questions concerning Graphics Mill.
 
In this topic:
 
- How to Resolve FileLoadException
- How to Resolve BadImageFormatException
    - Desktop Application
    - Web Application
- How to Resolve UnsupportedPixelFormatException
- Other problems

## How to Resolve FileLoadException
  
**Description**
 
Graphics Mill requires the Microsoft Visual C++ Redistributable Package to be installed on a development machine. The package is installed automatically during the Graphics Mill installation process; however, this step can be skipped. If this has occurred, the following error displays when running a Graphics Mill application:
 
`FileLoadException: Could not load file or assembly 'Aurigma.GraphicsMill, Version=1.0.4543.2441, Culture=neutral, PublicKeyToken=f4bbbf243f314012' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1).`
 
**Resolution**
 
To resolve the problem, you should install the Microsoft Visual C++ Redistributable Package. You can download it from the Microsoft site:
 
- For .NET Framework 4.7.2 and .NET 9 binaries - Microsoft Visual C++ 2015-2022 Redistributable Package:
    - [Microsoft Visual C++ 2015-2022 Redistributable Package (x86)](https://aka.ms/vs/17/release/vc_redist.x86.exe)
    - [Microsoft Visual C++ 2015-2022 Redistributable Package (x64)](https://aka.ms/vs/17/release/vc_redist.x64.exe)

The links above provide x86 (32-bit) and x64 (64-bit) editions of the package. Install the x64 package if you use 64-bit Graphics Mill assembly, and x86 package otherwise.
 
**Note** 
Alternatively, you can find these packages in the Graphics Mill installation folder at ` C:\Program Files (x86)\Aurigma\Graphics Mill 12 SDK\VCRedists`.
 
## How to Resolve BadImageFormatException
  
### Desktop Application
 
**Description**
 
This problem occurs when you try to run a 32-bit desktop application on a 64-bit machine. The error message displayed is:
 
`BadImageFormatException: Could not load file or assembly 'Aurigma.GraphicsMill, Version=1.0.4543.2441, Culture=neutral, PublicKeyToken=f4bbbf243f314012' or one of its dependencies. An attempt was made to load a program with an incorrect format.`
 
**Resolution**
 
This error is caused by an incorrect value for the **Platform target** setting in the project properties. The **Platform target** is set to *Any CPU* by default. To run the application correctly, you should change the value of the **Platform target** to *x86* and recompile your application. For C# projects, follow these steps:
 
1. Open your application in Visual Studio.
2. On the main menu, click the **Project** and select **Properties...**.
3. Expand the **Build** tab and change the **Platform target** to *x86*.
4. Rebuild the project and run it.

For VB projects, follow these steps:
 
1. Open your application in Visual Studio.
2. On the main menu, click the **Project** and select **Properties...**.
3. Expand the **Compile** tab and click the **Advanced Compile Options...**
4. Change the **Target CPU** to *x86*.
5. Rebuild the project and run it.

### Web Application
 
**Description**
 
This problem occurs when you try to access a 32-bit web application that is running under IIS on a 64-bit machine. By default, a 64-bit application pool disables to run 32-bit applications. The error message is the following:

```
[BadImageFormatException: Could not load file or assembly 'Aurigma.GraphicsMill' or one of its dependencies. An attempt was made to load a program with an incorrect format.]System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark stackMark, Boolean forIntrospection) +416System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark stackMark, Boolean forIntrospection) +166System.Reflection.Assembly.Load(String assemblyString) +35System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190
```
 
**Resolution**
 
To enable 32-bit applications, follow these steps:
 
1. Open the Internet Information Services (IIS) Manager.
2. On the **Connections** list, expand the connection used by your application and select **Applications Pools**.
3. Select the application pool under which your web application is running.
4. On the **Actions** menu, click **Advanced Settings...**.
5. Set **Enable 32-Bit Applications** to *True*.
6. Restart IIS and re-run your application.
 
## How to Resolve UnsupportedPixelFormatException
  
**Description**
 
This problem occurs when you try to apply an operation that is incompatible with an image's pixel format. For example, you cannot draw on CMYK images or save JPEGs in the 48 bit RGB format.
 
**Resolution**
 
To solve this problem, convert an image to a pixel format supported by the desired operation as it is described in the [Converting Colors with Color Management](https://www.graphicsmill.com/docs/gm/converting-color-with-color-management.htm.md) topic. To determine whether a given pixel format is supported use the [IsPixelFormatSupported(PixelFormat)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_PipelineElement_IsPixelFormatSupported_1_3e209c07.htm.md) method.
 
## Other problems
  
If your problem is still unresolved:
 
Submit a new support ticket, and our support team will assist you shortly. For more information see the [How to Create Proper Support Ticket](https://www.graphicsmill.com/docs/gm/how-to-create-proper-support-ticket.htm.md) topic.
