簡體   English   中英

無法加載文件或程序集 rdlc VS 2017

[英]Could not load file or assembly rdlc VS 2017

我正在使用 Visual Studio 2017 來開發 rdlc 並使用本地化項目,這是我的解決方案的一部分。 我從這個本地化項目中創建了一個 DLL,並在報告代碼中使用了 DLL 中的代碼。 我引用了這個 DLL,我在 rdlc 中收到了這個錯誤。

Error while loading code module: ‘MyDll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'MyDll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. 

我試圖將此 DLL 復制到幾個位置,例如,但它不起作用。

C:\Program Files (x86)\MSBuild\14.0\Bin
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies

我還運行了gacutil -i MyDll.dll但這仍然不起作用。

這里可能有什么問題?

我終於找到了一個需要使用程序集綁定日志查看器放置 dll 的位置,就是這樣,

C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\MSBuild\\15.0\\Bin

現在它工作正常。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

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