解決方法: 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-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>“/”應用程序中的服務器錯誤。<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\rel-microsoft-kpsoft\REL.Microsoft.KPSoft.BusinessLogic\Order\SAP\MessageProcessor\OrderCreditFor41MessageProcessor.cs:547
REL.Microsoft.KPSoft.Web41.Order.OrderBasicInfoB2B.ProcessRequest(HttpContext context) in D:\LenovoGit\rel-microsoft-kpsoft\REL.Microsoft.KPSoft.Portal\Order\OrderBasicInfoB2B.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\rel-microsoft-kpsoft\REL.Microsoft.KPSoft.BusinessLogic\Order\SAP\MessageProcessor\OrderCreditFor41MessageProcessor.cs:行號 547
在 REL.Microsoft.KPSoft.Web41.Order.OrderBasicInfoB2B.ProcessRequest(HttpContext context) 位置 D:\LenovoGit\rel-microsoft-kpsoft\REL.Microsoft.KPSoft.Portal\Order\OrderBasicInfoB2B.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"/>。-->
