找回密码
 立即注册

QQ登录

只需一步,快速开始

lxj

初级会员

6

主题

26

帖子

202

积分

初级会员

积分
202
lxj
初级会员   /  发表于:2018-4-9 09:58  /   查看:4394  /  回复:9
本帖最后由 lxj 于 2018-4-25 16:40 编辑
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)</title>
  5. <meta name="viewport" content="width=device-width" />
  6. <style>
  7. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
  8. p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
  9. b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
  10. H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
  11. H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
  12. pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
  13. .marker {font-weight: bold; color: black;text-decoration: none;}
  14. .version {color: gray;}
  15. .error {margin-bottom: 10px;}
  16. .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
  17. @media screen and (max-width: 639px) {
  18. pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
  19. }
  20. @media screen and (max-width: 479px) {
  21. pre { width: 280px; }
  22. }
  23. </style>
  24. </head>

  25. <body bgcolor="white">

  26. <span><H1>“/MedicalViewerServiceWcf20”应用程序中的服务器错误。<hr width=100% size=1 color=silver></H1>

  27. <h2> <i>未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)</i> </h2></span>

  28. <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

  29. <b> 说明: </b>执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

  30. <br><br>

  31. <b> 异常详细信息: </b>System.BadImageFormatException: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)<br><br>

  32. <b>源错误:</b> <br><br>

  33. <table width=100% bgcolor="#ffffcc">
  34. <tr>
  35. <td>
  36. <code>

  37. 执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。</code>

  38. </td>
  39. </tr>
  40. </table>

  41. <br>

  42. <b>堆栈跟踪:</b> <br><br>

  43. <table width=100% bgcolor="#ffffcc">
  44. <tr>
  45. <td>
  46. <code><pre>

  47. [BadImageFormatException: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)]
  48. System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
  49. System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +36
  50. System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
  51. System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
  52. System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +21
  53. System.Reflection.Assembly.Load(String assemblyString) +28
  54. System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38

  55. [ConfigurationErrorsException: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)]
  56. System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +738
  57. System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217
  58. System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
  59. System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
  60. System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +92
  61. System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +290
  62. System.Web.Compilation.BuildManager.ExecutePreAppStart() +157
  63. System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +531

  64. [HttpException (0x80004005): 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)]
  65. System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9947444
  66. System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
  67. System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261
  68. </pre></code>

  69. </td>
  70. </tr>
  71. </table>

  72. <br>

  73. <hr width=100% size=1 color=silver>

  74. <b>版本信息:</b> Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.6.1055.0

  75. </font>

  76. </body>
  77. </html>
  78. <!--
  79. [BadImageFormatException]: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)
  80. 在 System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
  81. 在 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
  82. 在 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
  83. 在 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
  84. 在 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
  85. 在 System.Reflection.Assembly.Load(String assemblyString)
  86. 在 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
  87. [ConfigurationErrorsException]: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)
  88. 在 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
  89. 在 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
  90. 在 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
  91. 在 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
  92. 在 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
  93. 在 System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
  94. 在 System.Web.Compilation.BuildManager.ExecutePreAppStart()
  95. 在 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
  96. [HttpException]: 未能加载文件或程序集“Leadtools.Codecs.Bmp.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)
  97. 在 System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
  98. 在 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
  99. 在 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
  100. -->
复制代码
尝试过重装leadtools 还是会出现这个问题、IIS配置如下:。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

9 个回复

倒序浏览
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2018-4-9 16:21:23
沙发
您好,这个应该是属于系统环境的问题,您可以先参考下面的网页看一下具体的原因和修复方法
https://www.kafan.cn/edu/68286066.html
回复 使用道具 举报
lxj
初级会员   /  发表于:2018-4-10 10:03:22
板凳
ok 我参照着换一下系统。
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2018-4-10 11:41:53
地板
好的
回复 使用道具 举报
ssr
初级会员   /  发表于:2018-4-13 09:53:26
5#
请问 你这个问题解决了么?谢谢
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2018-4-13 10:51:44
6#
ssr 发表于 2018-4-13 09:53
请问 你这个问题解决了么?谢谢

你这边也是用windows server来部署的吗,能否确认一下详细的操作系统版本名称
回复 使用道具 举报
ssr
初级会员   /  发表于:2018-4-13 15:38:57
7#
Richard.Ma 发表于 2018-4-13 10:51
你这边也是用windows server来部署的吗,能否确认一下详细的操作系统版本名称

我又新发的帖子,谢谢,
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2018-4-13 18:23:41
8#
ssr 发表于 2018-4-13 15:38
我又新发的帖子,谢谢,

好的,在新的帖子上给您回复
回复 使用道具 举报
lxj
初级会员   /  发表于:2018-4-25 16:37:08
9#
ssr 发表于 2018-4-13 09:53
请问 你这个问题解决了么?谢谢

换了windows server 2016 问题已经解决了。之前没看,所以没回答。sry
回复 使用道具 举报
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2018-4-26 14:02:22
10#
lxj 发表于 2018-4-25 16:37
换了windows server 2016 问题已经解决了。之前没看,所以没回答。sry

解决了就好
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部