我正在嘗試創建一個水晶報告,並且我是該領域的新成員。我從this tutorial post創建了一份水晶報告,但似乎並不奏效。無法加載文件或程序集'log4net'或它的一個依賴關係
我的錯誤是:
Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'log4net' could not be loaded.
您是否在計算機上安裝了log4net? – ChrisF 2012-03-15 21:56:39
您的問題是與log4net,而不是水晶報表。你是否添加了對log4net dll的引用? – 2012-03-15 21:57:09
不,我沒有,我不知道該怎麼做,請你幫幫我。謝謝 – emilios 2012-03-15 21:58:49