本帖最后由 lxj 于 2018-4-25 16:40 编辑
- <!DOCTYPE html>
- <html>
- <head>
- <title>未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)</title>
- <meta name="viewport" content="width=device-width" />
- <style>
- body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
- p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
- b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
- H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
- H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
- pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
- .marker {font-weight: bold; color: black;text-decoration: none;}
- .version {color: gray;}
- .error {margin-bottom: 10px;}
- .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
- @media screen and (max-width: 639px) {
- pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
- }
- @media screen and (max-width: 479px) {
- pre { width: 280px; }
- }
- </style>
- </head>
-
- <body bgcolor="white">
-
- <span><H1>“/MedicalViewerServiceWcf20”应用程序中的服务器错误。<hr width=100% size=1 color=silver></H1>
-
- <h2> <i>未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)</i> </h2></span>
-
- <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
-
- <b> 说明: </b>执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
-
- <br><br>
-
- <b> 异常详细信息: </b>System.BadImageFormatException: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)<br><br>
-
- <b>源错误:</b> <br><br>
-
- <table width=100% bgcolor="#ffffcc">
- <tr>
- <td>
- <code>
-
- 执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。</code>
-
- </td>
- </tr>
- </table>
-
- <br>
-
- <b>堆栈跟踪:</b> <br><br>
-
- <table width=100% bgcolor="#ffffcc">
- <tr>
- <td>
- <code><pre>
-
- [BadImageFormatException: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)]
- System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
- System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +36
- System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
- System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
- System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +21
- System.Reflection.Assembly.Load(String assemblyString) +28
- System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38
-
- [ConfigurationErrorsException: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)]
- System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +738
- System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217
- System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
- System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
- System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +92
- System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +290
- System.Web.Compilation.BuildManager.ExecutePreAppStart() +157
- System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +531
-
- [HttpException (0x80004005): 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)]
- System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9947444
- System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
- System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261
- </pre></code>
-
- </td>
- </tr>
- </table>
-
- <br>
-
- <hr width=100% size=1 color=silver>
-
- <b>版本信息:</b> Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.6.1055.0
-
- </font>
-
- </body>
- </html>
- <!--
- [BadImageFormatException]: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)
- 在 System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
- 在 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
- 在 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
- 在 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
- 在 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
- 在 System.Reflection.Assembly.Load(String assemblyString)
- 在 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
- [ConfigurationErrorsException]: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)
- 在 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
- 在 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
- 在 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
- 在 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
- 在 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
- 在 System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
- 在 System.Web.Compilation.BuildManager.ExecutePreAppStart()
- 在 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
- [HttpException]: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)
- 在 System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
- 在 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
- 在 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
- -->
复制代码 尝试过重装leadtools 还是会出现这个问题、IIS配置如下:。
|