Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2012 无法加载“;金黄色葡萄球菌;,以不正确的格式加载程序 无法在visual studio 2013中作为网站运行 无法加载文件或程序集“Aurigma.GraphicsMill”或其依赖项之一。试图加载格式不正确的程序。 例外情况详情:_Visual Studio 2012_Badimageformatexception_Aurigma - Fatal编程技术网

Visual studio 2012 无法加载“;金黄色葡萄球菌;,以不正确的格式加载程序 无法在visual studio 2013中作为网站运行 无法加载文件或程序集“Aurigma.GraphicsMill”或其依赖项之一。试图加载格式不正确的程序。 例外情况详情:

Visual studio 2012 无法加载“;金黄色葡萄球菌;,以不正确的格式加载程序 无法在visual studio 2013中作为网站运行 无法加载文件或程序集“Aurigma.GraphicsMill”或其依赖项之一。试图加载格式不正确的程序。 例外情况详情:,visual-studio-2012,badimageformatexception,aurigma,Visual Studio 2012,Badimageformatexception,Aurigma,System.BadImageFormatException:无法加载文件或程序集“Aurigma.GraphicsMill”或其依赖项之一。试图加载格式不正确的程序 堆栈跟踪:[BadImageFormatException:无法加载文件或程序集'Aurigma.GraphicsMill'或其依赖项之一。试图加载格式不正确的程序。] System.Reflection.Assembly.\u nLoad(AssemblyName文件名、字符串代码基、证据assemblySecurity、Ass

System.BadImageFormatException:无法加载文件或程序集“Aurigma.GraphicsMill”或其依赖项之一。试图加载格式不正确的程序

堆栈跟踪:[BadImageFormatException:无法加载文件或程序集'Aurigma.GraphicsMill'或其依赖项之一。试图加载格式不正确的程序。] System.Reflection.Assembly.\u nLoad(AssemblyName文件名、字符串代码基、证据assemblySecurity、AssemblyLocationHint、StackScrawMark和stackMark、Boolean throwOnFileNotFound、Boolean for Inspection)+0 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,证据assemblySecurity,StackScrawMark&stackMark,布尔值用于内省)+416 System.Reflection.Assembly.InternalLoad(字符串assemblyString、证据assemblySecurity、StackScrawMark和stackMark,布尔值用于内省)+166 System.Reflection.Assembly.Load(字符串assemblyString)+35 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串assemblyName,Boolean starDirective)+190 按照Graphicsmill的建议尝试针对Web应用程序的常见问题论坛

如何解决BadImageFormatException。()
通过visual studio 2013在我的本地计算机上运行网站的任何其他建议都非常有用。

我找到了答案,需要更改到相关的应用程序池

[


Kalyan回答。

关于这个问题有很多信息。其中大部分是关于64位与32位的问题。我的确切问题是我使用的是64位Aurigma.GraphicsMill,但我的应用程序池(DefaultAppPool)已将启用32位应用程序设置为True,如果您阅读窗口底部的说明,它会使您的应用程序以32位模式运行。我正在尝试从32位应用程序运行64位.dll


抱歉!我忘记更改相关应用程序池。()对于IIS Express:转到:工具>选项>项目和解决方案>Web项目>使用64位版本的IIS Express Stack Trace: [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) +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