FileLoadException: Could not load file or assembly 'Aurigma.GraphicsMill, Version=5.0.82.0, Culture=neutral, PublicKeyToken=af7154c50c505858' 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)
The link above provides with x64 and x86 editions of vcredist. You should install the edition which is corresponded to the used edition of Graphics Mill assemblies.
This is good info although a pretty major bug to release with a new version. I had this problem and contacted your tech support directly with this error message and they had no clue how to fix it. They should read the forum too.
Have Sp1 installed and also latest update for Sp1 and still get this message. Using a spanish Visual Studio 2005 edition and service packs. Can run the compiled demos as distributed by you but not the sample projects from Visual Studio IDE. Thanks in advance.
cmsturg If we are developing a web application, will the Microsoft Visual C++ 2005 SP1 Redistributable Package have to be installed on the server as well?
This is a nice post - but still I get the same error.... Using VS2008 or VS2005 makes no difference.
Installing the x64 bit version of GraphicsMill creates an error in VS - it cannot load the controls into the toolbox due to a x86-x64 error - Therefore I have installed the x86 version of GraphicsMill.
C++ redistributables have been installed for every concieveable combo of Visual Studio and platform...
Still the controls won't run.
Current Dev. PC configuration:
Vista Busines x64 (4GB RAM)
Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM Microsoft .NET Framework Version 3.5 (Installed Edition: Professional)
Microsoft Visual Studio 2005 Version 8.0.50727.867 (vsvista.050727-8600) Microsoft .NET Framework Version 2.0.50727 SP1 (Installed Edition: Enterprise)
So - what do I do now? Anyone have any suggestions?
I've just started an evaluation of Graphics Mill for .Net 5.0 and I'm getting the same error message, but for a different assembly (Auriga.GraphicsMill.Codecs.AviProcessor). Note that I don't get the message relating to the core library). I don't have VS2005 on this machine, I have VS2008 (with .Net framework 3.5). I don't want to have to install the VC2005 SP1 redistributable just for this purpose -- I don't have any other reason to have xxx2005 components on my web server -- is there any way to get a version of the Graphics Mill libraries built for 2008?
You get this error message for Aurigma.GraphicsMill.Codecs.AviProcessor.dll just because this assembly was loaded first.
Actually Visual C++ 2005 SP1 Redistributable is not part of Visual Studio, it is set of assemblies and dlls required by applications compiled with VC++ 2005 (I have no idea why Microsoft does not redistribute them within updates). You can be sure that installing Visual C++ 2005 SP1 Redistributable does not mean that you install VS2005 or some of its parts.
Unfortunately VS2008 does not help you to solve this issue. You need to install the exact files listed in this forum thread.
To resolve the issue you need to find Visual Studio 2005 SP1 installed on some machine and copy VC++ 2005 SP1 Redistributible bootstrapper from there to your VS2008. To do it, please, walk through the following steps:
On a machine with VS2005 installed open c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages and copy the vsredist_x86 folder to the machine you are publishing from.
Rename the folder to vsredist_x86_2005.
Inside the folder, edit the \en\package.xml file. Change the <String Name="DisplayName"> tag to Visual C++ 2005 SP1 Runtime Libraries (x86) to differentiate it from the existing 2008 package.
Copy the folder to C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages.
Restart Visual Studio.
Now, when you open the Prerequisites dialog you should see Visual C++ 2005 SP1 Runtime Libraries (x86) package. You need to set this option and publish your application. If you use x64 version of Graphics Mill you need to do the same with only one difference – bootstrapper should be for 64 bit VC++ 2005 SP1 Redistributable.
In case if you do not have VS2005 SP1 at hand, I attached bootstrappers to this post.
I was trying to use GraphicsMill but unable to do so. I did install the C++ 2005 runtime x64. I'm trying to run this on IIS 7. I also checked the winsxs folder ;
Could not load file or assembly 'Aurigma.GraphicsMill.Codecs.AdvancedPsd' or one of its dependencies. An attempt was made to load a program with an incorrect format.
=== Pre-bind state information === LOG: User = IIS APPPOOL\DefaultAppPool LOG: DisplayName = Aurigma.GraphicsMill.Codecs.AdvancedPsd (Partial) LOG: Appbase = file:///C:/Users/Richard/Documents/Visual Studio 2008/Projects/PASTA/WebApplication1/ LOG: Initial PrivatePath = C:\Users\Richard\Documents\Visual Studio 2008\Projects\PASTA\WebApplication1\bin Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Users\Richard\Documents\Visual Studio 2008\Projects\PASTA\WebApplication1\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/webapplication1/8581d8c9/6c14da19/Aurigma.GraphicsMill.Codecs.AdvancedPsd.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/webapplication1/8581d8c9/6c14da19/Aurigma.GraphicsMill.Codecs.AdvancedPsd/Aurigma.GraphicsMill.Codecs.AdvancedPsd.DLL. LOG: Attempting download of new URL file:///C:/Users/Richard/Documents/Visual Studio 2008/Projects/PASTA/WebApplication1/bin/Aurigma.GraphicsMill.Codecs.AdvancedPsd.DLL. ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
Stack Trace:
[BadImageFormatException: Could not load file or assembly 'Aurigma.GraphicsMill.Codecs.AdvancedPsd' 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) +0 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166 System.Reflection.Assembly.Load(String assemblyString) +35 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190
[ConfigurationErrorsException: Could not load file or assembly 'Aurigma.GraphicsMill.Codecs.AdvancedPsd' or one of its dependencies. An attempt was made to load a program with an incorrect format.] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11207304 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232 System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +210 System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +191 System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +54 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +295 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +476 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +116 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +175 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +52 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +50 System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +425 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +263
Dev. Enviroment: Windows 7 Ultimate x64 Visual Studio 2008 SP1 Installed Visual C++ 2005 with SP1 x64
Fixed the problem above by removing the reference of Aurigma.GraphicsMill and Aurigma.GraphicsMill.Codecs.AdvancedPsd on my project. I then also removed the said dll's from the bin directory of my project. I added the reference again and it worked. The reason, it was looking on C:\Program Files (x86) because at first I referenced it to an x86 installation which I uninstalled.
Also, if you are adding runtime libraries as private assemblies - note that Graphics Mill for .NET v5.5 now references to version 8.0.50727.4053 of VC80.CRT & VC80.OpenMP libraries instead of 8.0.50727.762.