Welcome Guest Search | Active Topics

Add Reply New Topic

INFO: Could not load file or assembly Aurigma.GraphicsMill problem

Options
Tanya
Posted: Monday, May 19, 2008 1:44:24 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 5/15/2007
Posts: 16
Points: 42
Since Graphics Mill for .NET 5.0 was released, we have received a number of emails from our customers who get the following error whenever run an application which uses Graphics Mill for .NET 5.0.

Quote:
[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)]


Eliminating this problem on the development computer

To eliminate this problem you should install the Microsoft Visual C++ 2005 SP1 Redistributable Package on your development computer before using Graphics Mill for .NET 5.0. You can download this package from Microsoft site:

Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)

Microsoft Visual C++ 2005 SP1 Redistributable Package (x64)

Eliminating this problem on the target computer

If you are going to distribute your application which uses Graphics Mill for .NET 5.0 to computers where it is not guaranteed that Visual C++ 2005 is installed, you should redistribute Visual C++ DLLs along with your application. There are three ways to redistribute Visual C++ DLLs with your application:
  1. Use Visual C++ Redistributable Merge Modules to install a particular Visual C++ library as shared side-by-side assemblies into the native assembly cache (WinSxS folder). This is the primary recommended way for redistributing Visual C++ libraries. Access to this folder requires that the installer application be run by a user with administrative rights.
  2. Use Visual C++ 2005 SP1 Redistributable Package to install all Visual C++ libraries as shared side-by-side assemblies into the native assembly cache (WinSxS folder). This package can be downloaded from the Microsoft download site using links above. To deploy Visual C++ libraries by using Visual C++ 2005 SP1 Redistributable Package, perform the following steps:

    - a. Create a folder structure on the development computer that matches the folder structure to be used on the target computer.

    - b. Copy this folder to the target computer.

    - c. Copy Visual C++ 2005 SP1 Redistributable Package to the target computer.

    - d. Run VCRedist_x86.exe (or VCRedist_x64.exe) on the target computer.
  3. Install a particular Visual C++ DLLs as a private assemblies for the application using files provided in the c:\Windows\WinSxS directory. This way is recommended to enable installation of applications by users who do not have administrative rights or when it should be possible to run an application from a share. To deploy Visual C++ DLLs as private assemblies, perform the following steps:

    - a. Create a folder structure on the development computer that matches the folder structure to be used on the target computer.

    - b. On your development machine open c:\Windows\WinSxS folder and copy the following folders to the folder containing binary assemblies in your application:
    x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_[…][/i];
    x86_Microsoft.VC80.OpenMP_1fc8b3b9a1e18e3b_8.0.50727.762_[…][/i].

    - c. Rename folders copied in the previous step:
    x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_[…] to Microsoft.VC80.CRT;
    x86_Microsoft.VC80.OpenMP_1fc8b3b9a1e18e3b_8.0.50727.762_[…] to Microsoft.VC80.OpenMP.

    - d. Open c:\Windows\WinSxS\Manifests folder on your development machine, take the following files:
    x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_[…].manifest
    x86_Microsoft.VC80.OpenMP_1fc8b3b9a1e18e3b_8.0.50727.762_[…].manifest,
    and copy them to Microsoft.VC80.CRT and Microsoft.VC80.OpenMP folders, accordingly.

    - e. Rename the files copied in the previous step:
    x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_[…].manifest file to Microsoft.VC80.CRT.manifest
    x86_Microsoft.VC80.OpenMP_1fc8b3b9a1e18e3b_8.0.50727.762_[…].manifest file to Microsoft.VC80.OpenMP.manifest.

    - f. After that make installation package included the files and folders prepared above and redistribute it.

Note:
  • Make sure that you copy folders with dlls and manifests of .762 version (this version should be in the name of folders and manifest files).
  • If you use x64 system you should copy the same folders and manifests with the difference that their names are started with x64_[...]
  • You can use the third way for Windows Applications only. For Web Applications you need to use Visual C++ 2005 SP1 Redistributable Package as described in the second way.

See the Choosing a Deployment Method topic for details.

*** Update for the Graphics Mill for .NET v5.5:

Due to security vulnerability found in ATL (Microsoft Security Bulletin MS09-035) Graphics Mill for .NET v5.5 and higher requires Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update to be installed instead of Microsoft Visual C++ 2005 SP1 Redistributable Package mentioned above.

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.


Best regards,
Tatyana Bertyakova

Follow Aurigma on Twitter!
kougar1994
Posted: Wednesday, May 21, 2008 12:49:50 PM
Rank: Newbie
Groups: Member

Joined: 3/29/2008
Posts: 1
Points: 3
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.
Alejandro
Posted: Thursday, May 29, 2008 8:20:06 AM
Rank: Newbie
Groups: Member

Joined: 5/29/2008
Posts: 6
Points: 18
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.
Dmitry
Posted: Friday, May 30, 2008 1:45:29 AM
Dmitry's avatar
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 985
Points: 1,203
Hello,

Have you tried to install Microsoft Visual C++ 2005 SP1 Redistributable Package?

If you use Graphics Mill 5.0 32-bit version, you need to install Microsoft Visual C++ 2005 SP1 Redistributable Package (x86), for Graphics Mill 5.0 x64 version you need Microsoft Visual C++ 2005 SP1 Redistributable Package (x64).

Sincerely yours,
Dmitry Sevostyanov.

Follow Aurigma on Twitter!
Alejandro
Posted: Monday, June 02, 2008 7:19:15 AM
Rank: Newbie
Groups: Member

Joined: 5/29/2008
Posts: 6
Points: 18
Solved now, thanks. Really outstanding support even on evaluation.
cmsturg
Posted: Wednesday, June 18, 2008 5:23:55 AM
Rank: Newbie
Groups: Member

Joined: 6/18/2008
Posts: 1
Points: 3
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?
Dmitry
Posted: Friday, June 20, 2008 4:07:29 AM
Dmitry's avatar
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 985
Points: 1,203
Hello,

cmsturg wrote:
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?


Yes, you need to install it.

Sincerely yours,
Dmitry Sevostyanov.

Follow Aurigma on Twitter!
martinmoesby
Posted: Thursday, January 08, 2009 2:13:38 AM
Rank: Newbie
Groups: Member

Joined: 1/8/2009
Posts: 1
Points: 3
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?
Dmitry
Posted: Thursday, January 08, 2009 11:29:09 AM
Dmitry's avatar
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 985
Points: 1,203
Hello,

It seems something wrong with redistributable package. As you have 64 bit version of Windows we need to check the following: Please, take into account that redistributable packages should be downloaded from the certain links listed above.

To check whether redistributable package is installed correctly, go to C:\Windows\winsxs folder. You should find the following folders there:

For Microsoft Visual C++ 2005 SP1 Redistributable Package (x86):
  • x86_Microsoft.VC80.CRT_[...]_8.0.50727.762_[…];
  • x86_Microsoft.VC80.OpenMP_[...]_8.0.50727.762_[…].
For Microsoft Visual C++ 2005 SP1 Redistributable Package (x64):
  • amd64_Microsoft.VC80.CRT_[...]_8.0.50727.762_[…];
  • amd64_Microsoft.VC80.OpenMP_[...]_8.0.50727.762_[…].


Sincerely yours,
Dmitry Sevostyanov.

Follow Aurigma on Twitter!
IS_Chris
Posted: Wednesday, January 14, 2009 7:34:34 AM
Rank: Newbie
Groups: Member

Joined: 1/14/2009
Posts: 1
Points: 3
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?


Dmitry
Posted: Wednesday, January 14, 2009 10:12:24 PM
Dmitry's avatar
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 985
Points: 1,203
Hello,

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.

Sincerely yours,
Dmitry Sevostyanov.

Follow Aurigma on Twitter!
mikro
Posted: Friday, March 20, 2009 8:15:21 PM
Rank: Newbie
Groups: Member

Joined: 1/15/2008
Posts: 4
Points: -85
I receive this same error, but I use click-once deployment for remote installations from VS 2008.

How do you install the Visual C++ 2005 SP1 Redistributable using click onceand VS 2008?
Dmitry
Posted: Tuesday, March 24, 2009 4:17:31 AM
Dmitry's avatar
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 985
Points: 1,203
Hello,

Thanks for the report. I will check it and post results here.

Sincerely yours,
Dmitry Sevostyanov.

Follow Aurigma on Twitter!
Dmitry
Posted: Wednesday, March 25, 2009 6:35:39 AM
Dmitry's avatar
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 985
Points: 1,203
Hello,

The same problem is discussed here: http://stackoverflow.com/questions/122451/specifying-a-vc-redistributable-version-for-clickonce-prerequisite.

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:
  1. 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.
  2. Rename the folder to vsredist_x86_2005.
  3. 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.
  4. Copy the folder to C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages.
  5. 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.

File Attachment(s):
vcredist_x64_2005.zip (3,090kb) downloaded 23 time(s).
vcredist_x86_2005.zip (2,624kb) downloaded 27 time(s).




Sincerely yours,
Dmitry Sevostyanov.

Follow Aurigma on Twitter!
mikro
Posted: Wednesday, March 25, 2009 9:53:45 AM
Rank: Newbie
Groups: Member

Joined: 1/15/2008
Posts: 4
Points: -85
Thank you Dmitry for your very detailed information.

This seems to be exactly what I was looking for.

After using Visual Studio 2008 for several months, I removed the Visual Studio 2005 installation from my computer.

I suppose that the VC++ 2005 Runtime bootstrapper package was also removed when I uninstalled Visual Studio 2005?

So for GraphicsMill V5, will I need to have prerequisites set for both the 2005 AND the 2008 vesions of the VC++ runtimes, or just the 2005 version?

Michael


Dmitry
Posted: Wednesday, March 25, 2009 12:07:30 PM
Dmitry's avatar
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 985
Points: 1,203
Hello Michael,

Graphics Mill requires VC++ 2005 SP1 Redistributable package only.

Sincerely yours,
Dmitry Sevostyanov.

Follow Aurigma on Twitter!
rrchico
Posted: Sunday, September 20, 2009 7:52:25 PM
Rank: Newbie
Groups: Member

Joined: 9/20/2009
Posts: 2
Points: 6
Hi,

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 ;

amd64_microsoft.vc80.openmp_1fc8b3b9a1e18e3b_8.0.50727.762_none_338673a60d08dbcc
amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.762_none_c905be8887838ff2

Have I missed something?

here is the stack trace generated;

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
rrchico
Posted: Sunday, September 20, 2009 8:10:26 PM
Rank: Newbie
Groups: Member

Joined: 9/20/2009
Posts: 2
Points: 6
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.
Alex Kon
Posted: Tuesday, September 29, 2009 3:15:01 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 427
Points: 526
*** Update for the upcoming Graphics Mill for .NET v5.5

Due to security vulnerability found in ATL (Microsoft Security Bulletin MS09-035) Graphics Mill for .NET v5.5 and higher requires Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update to be installed instead of Microsoft Visual C++ 2005 SP1 Redistributable Package mentioned above.

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.


Best wishes, Alex.

Follow Aurigma on Twitter!
Drastik
Posted: Thursday, November 12, 2009 2:04:44 AM
Rank: Newbie
Groups: Member

Joined: 11/12/2009
Posts: 1
Points: 3
Incase anyone at Aurigma will care to know..

I am a potential customer trying to evaluate Graphics Mill 5.5

I have Visual Studio 2008 (isn't 2010 coming out soon?)

Having to find this dependency to a VS 2005 redistributable (and its security update) buried deep in the forums cost me ~2hrs.

I think this is more than what most persons evaluating your software will be willing to go through.

Perhaps, like me, you may also consider it appropriate to update at least the forum post:

http://forums.aurigma.com/yaf_postst3045_Web-Demos-Bundle-photo-cropping-TIFF-viewer-red-eye-removal-and-business-card-editor.aspx

that is referenced by a shortcut in your software with this information.

Even better might be to update your software which already prompts to download and install:

ASPAJAXExtSetup.msi

with prompts for these other dependencies.

I may be wrong, but I think this might possibly help with sales of your product to new users..



Users browsing this topic
Guest

Add Reply New Topic

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.