cost 295 ms
有沒有辦法通過預先分析來避免 Assembly.Load 上的 BadImageFormatException

[英]Is there a way to avoid BadImageFormatException on Assembly.Load by pre-analyzing

我有一個應用程序,它將用戶放入一個特殊目錄的所有 .dll 加載。 如果它們創建錯誤 (x86,x64) 或其他內容,則會引發 BadImageFormatException。 沒關系,但我不喜歡避免例外。 所以問題是: 有沒有辦法提前分析文件以避免異常? 檢查它是否是正確的平台目標檢查它是否不受 ...

jenkins 服務在系統更新后不再啟動

[英]jenkins service no longer starting after system update

在我們的服務器收到 Windows 更新后,我收到了 BadImageFormatException。 谷歌搜索只提示 .NET 不匹配,但我在那里找不到任何問題。 Jenkins 版本為 2.263.1 編輯:從 jenkins.exe.config 中刪除 <supportedRunti ...

在 Windows 8.1 中找不到 Emgu DLL 和錯誤圖像格式異常

[英]Emgu DLL not found and Bad Image Format exceptions in Windows 8.1

我有一個使用 Emgu.CV v 3.1 的 .Net 應用程序,它在安裝在 Win 10 上后運行正常,但在 Win 8.1 64 位上失敗並出現類型初始值設定項異常,以及安裝在 x64 中的 dll 'cvextern' 的 InnerException DLLNotFound包含 .exe 的 ...

Nuget NLog 64 位

[英]Nuget NLog 64bit

我有一個使用 NLog 的 asp.net 應用程序。 我可以成功地為 x32 平台運行它。 但是對於 x64 平台,我在啟動時出錯: BadImageFormatException 無法加載文件或程序集或其依賴項之一。 試圖加載格式不正確的程序 我認為,這是由於 NLog.dll 的 x32 ...

如何讓實驗室流層在 C# 中工作?

[英]How to get lab streaming layer to work in C#?

我有一個設備可以記錄實時數據,如腦電圖測量。 我想用實驗室流層 (lsl) 發送這些數據。 不幸的是,我無法配置 lsl 並讓它運行。 我不確定我是否將 dll 復制到了正確的位置。 到目前為止我做了什么: 從最新發布頁面下載最近的 lsl dll 將 liblsl64.lib 和 li ...

WIX 使用 x64 安裝 Windows 服務

[英]WIX install windows service with x64

我不得不將我的項目更改為 x64,現在按照本教程,我也嘗試將我的 WIX 安裝更改為 x64。 但是 WIX 安裝會嘗試安裝 Windows 服務。 此服務使用msiexec /i Setup.msi /L*V install.log在 install.log 中引發以下異常: System ...

使用任何 cpu 編譯時出現 System.BadImageFormatException

[英]System.BadImageFormatException when compiled using any cpu

當我使用“任何 CPU”編譯應用程序時,每當我嘗試使用 Firebird 嵌入式 dll 打開連接時,我都會收到System.BadImageFormatException (不要問我為什么我仍在使用這個舊數據庫。不是我的選擇) 然后我想一定是dll只支持32位模式。 所以我嘗試使用 x86 進行 ...

IIS 上的 SystemBadImageFormat 異常

[英]SystemBadImageFormat Exception on IIS

嗨,我有一個應用程序在 iis 上運行 .net 4.7.2 和 windows server 2016。有時我得到 SystemBadImageFormat Exception: Bad Token error 或 SystemBadImageFormat Exception a valid ty ...

帶有 WPF 桌面橋包的 UWP 中的 System.BadImageFormatException

[英]System.BadImageFormatException in UWP with WPF desktop bridge package

我已經在這個主題中完整詳細地描述了問題和問題, AppServiceResponse 中的 System.NullReferenceException 和 UWP 的 System.BadImageFormatException with WPF 桌面橋包,但仍然沒有找到答案,是什么導致了這個失敗。 ...

VS2017無法加載文件或程序集

[英]VS2017 Could not load file or assembly

我已經看完了每個示例,但似乎無法解決這個錯誤。 我嘗試過= 將構建從x64設置為x86到AnyCPU =無效 我嘗試刪除IIS Express文件夾=無效 我嘗試刪除.vs項目文件夾=無效 我嘗試從打開/關閉覆蓋應用程序根URL更改項目配置=兩者都不起作用 ...

將我的應用程序升級到 Asp.net Core 2.1.1 后,Azure 應用服務拋出 System.BadImageFormatException

[英]Azure App Service threw System.BadImageFormatException after upgrading my app to Asp.net Core 2.1.1

我將 Web 應用程序升級到最新的 Asp.net Core 2.1.1,然后直接從 GitHub 將其推送到 Azure 應用程序服務。 當我訪問我的網站時,我得到 500 並且日志顯示以下內容 System.BadImageFormatException: 在 System.Runtime ...

.NET 4.0 WinForm-無法加載文件或程序集或其依賴項之一。 不是有效的Win32應用程序

[英].NET 4.0 WinForm - Could not load file or assembly or one of its dependencies. is not a valid Win32 application

我有一個可以在大多數Windows 10(64位)系統上運行的應用程序,但是有6台計算機正在獲得相同的BadImageFormatException。 該應用程序和庫的目標是AnyCPU。 嘗試從程序集創建COM對象時,出現異常: 無法加載文件或程序集“ InfoConnectCO ...

Moq單元測試在解決badimageformatexception之后消失了

[英]Moq Unit Test disappear after solving badimageformatexception

所以我有這個問題: badimageformatexception 我已經有一次了,很快就解決了。 但是現在我從Git中提取了一個引用的項目,並且當我在測試項目中匹配了正確的CPU參數時,為了沒有這些警告消息 警告來自“ MyProjet”的當前正在構建的處理器體系結構與引 ...

正在獲取BadImageFormatException:無法加載文件或程序集Microsoft.AspNetCore.Razor.Language

[英]Getting BadImageFormatException: Could not load file or assembly Microsoft.AspNetCore.Razor.Language

我正在嘗試在主機上部署我的應用程序,首先它運行良好。 但是,然后我回到我的代碼那里進行了一些更改(僅適用於javascript),當我嘗試再次發布時,它向我顯示了此錯誤。 BadImageFormatException: Could not load file or assembly ...

嘗試安裝MSI時出現BadImageFormatException

[英]BadImageFormatException when trying to install msi

我正在使用VS 2015和.net Framework 4.6。 我有多個項目的解決方案。 當我建立解決方案時,它工作正常。 我為版本x64構建解決方案和所有項目。 我還有一個安裝程序項目,其中包含所有項目的dll。 當我構建安裝程序時,它會成功構建。 真正的問題是當我嘗試安裝該版本 ...

嘗試將.dll文件添加到C#項目時出現BadImageFormatException-Intel Realsense SDK

[英]BadImageFormatException, when trying to add .dll file to C# project - Intel realsense SDK

每次我嘗試編譯時,都會出現此錯誤: System.BadImageFormatException:'試圖加載格式錯誤的程序。 (來自HRESULT的異常:0x8007000B)' 當我嘗試運行session = PXCMSession.CreateInstance(); ...

嘗試解析System.Collections.Generic.GenericComparer`1的構造函數時出現System.BadImageFormatException

[英]System.BadImageFormatException when trying to resolve constructor of System.Collections.Generic.GenericComparer`1

我有以下代碼的問題: 每次執行它都會給我以下錯誤: 但是,如果有的話 我用它的基類 然后“ResolveMethod”返回OK。 有人知道為什么這堂課不能“解決”? 謝謝! ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM