解决方法: iis应用程序池-->高级设置 -->启用32位应用程序
<!DOCTYPE html>
<html>
<head>
<title>试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)</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: pointer;
}
@media screen and (max- 639px) {
pre {
440px;
overflow: auto;
white-space: pre-wrap;
word-wrap: break-word;
}
}
@media screen and (max- 479px) {
pre {
280px;
}
}
</style>
</head>
<body bgcolor="white">
<span><H1>“/”应用程序中的服务器错误。<hr width=100% size=1 color=silver></H1>
<h2> <i>试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> 说明: </b>执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
<br><br>
<b> 异常详细信息: </b>System.BadImageFormatException: 试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)<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: 试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)]
SAP.Connector.Connection.Open() +316
REL.Microsoft.KPSoft.SalesDistribution.SalesOrder.SAPOrderHelper_BP.CreateOrderStatic(OrderParameter_BP& orderParameterDataSet, String& Salesdocument, String SapConStr, Boolean isDigitalSignature, String Testrun) +1565
REL.Microsoft.KPSoft.BusinessLogic.Order.SAP.OrderCreditFor41MessageProcessor.ProceOrderAndCreditObject(OrderAndObjectFor41 orderAndCreditObject) in D:LenovoGit
el-microsoft-kpsoftREL.Microsoft.KPSoft.BusinessLogicOrderSAPMessageProcessorOrderCreditFor41MessageProcessor.cs:547
REL.Microsoft.KPSoft.Web41.Order.OrderBasicInfoB2B.ProcessRequest(HttpContext context) in D:LenovoGit
el-microsoft-kpsoftREL.Microsoft.KPSoft.PortalOrderOrderBasicInfoB2B.ashx.cs:1029
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +872
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94
</pre> </code>
</td>
</tr>
</table>
<br>
<hr width=100% size=1 color=silver>
<b>版本信息:</b> Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.3928.0
</font>
</body>
</html>
<!--
[BadImageFormatException]: 试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)
在 SAP.Connector.Connection.Open()
在 REL.Microsoft.KPSoft.SalesDistribution.SalesOrder.SAPOrderHelper_BP.CreateOrderStatic(OrderParameter_BP& orderParameterDataSet, String& Salesdocument, String SapConStr, Boolean isDigitalSignature, String Testrun)
在 REL.Microsoft.KPSoft.BusinessLogic.Order.SAP.OrderCreditFor41MessageProcessor.ProceOrderAndCreditObject(OrderAndObjectFor41 orderAndCreditObject) 位置 D:LenovoGit
el-microsoft-kpsoftREL.Microsoft.KPSoft.BusinessLogicOrderSAPMessageProcessorOrderCreditFor41MessageProcessor.cs:行号 547
在 REL.Microsoft.KPSoft.Web41.Order.OrderBasicInfoB2B.ProcessRequest(HttpContext context) 位置 D:LenovoGit
el-microsoft-kpsoftREL.Microsoft.KPSoft.PortalOrderOrderBasicInfoB2B.ashx.cs:行号 1029
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-->
<!--
此错误页可能包含敏感信息,因为 ASP.NET 通过 <customErrors mode="Off"/> 被配置为显示详细错误消息。请考虑在生产环境中使用 <customErrors mode="On"/> 或 <customErrors mode="RemoteOnly"/>。-->