This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Multiple errors when deploying to production webserver

nokturnal#30980
Hey,

Let me walk through how I have this setup:

- Added GraphicsMill via NuGet (8.1.30) to an existing ASP.net web application.
- Added my license information in the web.config
- I attempted to use the 64bit version, but IIS Express errored:

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

- I switch to the 32bit version and everything worked as expected locally.

** I can also run the 64bit version IF I force IISExpress to run in 64bit **

I then tried to publish to a production server (Windows 2012):

- Published and the production server errors with the same error as before:

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

- I enabled 32bit applications in IIS on the production server, and I get a new error:

Could not load file or assembly 'Aurigma.GraphicsMill.DLL' or one of its dependencies. The specified module could not be found.

- The Aurigma.GraphicsMill.dll is present in the BIN directory of the production website

If I change back to the x64 version and publish I get the second error again:

Could not load file or assembly 'Aurigma.GraphicsMill.DLL' or one of its dependencies. The specified module could not be found.

What do I do now? I do have the SDK installed on my dev system, but nothing is "installed" on the webserver. Does the webserver need to have the appropriate version of the Microsoft Visual C++ Redistributable Package installed?
nokturnal#30982
I decided to install the Visual C++ Redistributable Packages for Visual Studio 2013 and all errors have been resolved. This is a bit concerning in the long run due to this requirement, but for now it will work for me.

Thanks, and I hope this helps someone