DJ메탈짱™의 Free Style

[ASP.NET] ReportViewer 사용시 오류발생, web.config 본문

일(job)/MS(Microsoft)

[ASP.NET] ReportViewer 사용시 오류발생, web.config

뽀&쏭 2015. 12. 8. 12:28


Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Source Error: 

Line 42: 
Line 43: <httpHandlers>
Line 44: <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 45: </httpHandlers>
Line 46: 


Source File: D:\WebApplications\Kodyaz\RSWebApp\web.config Line: 44 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 더보기 (웹페이지가 로딩시 오류발생하는 경우에 이벤트뷰어를 확인해보면.....)

 

Reporting Service로 구현된 소스를 Report Viewer를 사용하였을 경우인데...

ReportViewer.exe 패키지가 설치되지 않으면 오류가 발생함. 로컬에서는 비주얼스튜디오가 설치되어 있으니 문제없이 실행이 되었던 것.

 

--> 제일 간단한 방법으로 비주얼스튜디오가 설치된 PC(개발PC)에서 ReportViewer.exe로 검색해보면  조회가 될 것인데. 서버에서 실행하여 아래와 같이 패키지를 설치하면 해결됨.