2014-11-21 10 views
0

여기 내 리그에서 벗어날 예정입니다. 중복 된 질문을하는 경우 사과 드리지만 어디서부터 시작해야할지 모르겠습니다.ASP.NET 레지스터 어셈블리 오류

최근에 SQL 데이터베이스를 웹 인터페이스를 호스팅하는 IIS와 함께 배치 된 SERVER1에서 데이터베이스에 SERVER2로 마이그레이션했습니다. 웹 인터페이스가 데이터베이스에 올바르게 액세스하고 있으며 일부 응용 프로그램 기능을 통해 오류없이 올바르게 데이터에 액세스 할 수 있습니다. 그러나 보고서를 실행하려고하면 다음 오류가 발생합니다.

어떻게 수정합니까? 나는이 더 자세한 메시지를 가지고

=== Pre-bind state information === 
LOG: User = AURORAFCS\raj 
LOG: DisplayName = Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 
(Fully-specified) 
LOG: Appbase = file:///C:/Family/ 
LOG: Initial PrivatePath = C:\Family\bin 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in default load context. 
LOG: Using application configuration file: C:\Family\web.config 
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config 
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. 
LOG: Post-policy reference: Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/dc46260e/807e5b0d/Microsoft.ReportViewer.WebForms.DLL. 
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/dc46260e/807e5b0d/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.DLL. 
LOG: Attempting download of new URL file:///C:/Family/bin/Microsoft.ReportViewer.WebForms.DLL. 
LOG: Attempting download of new URL file:///C:/Family/bin/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.DLL. 
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/dc46260e/807e5b0d/Microsoft.ReportViewer.WebForms.EXE. 
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/dc46260e/807e5b0d/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.EXE. 
LOG: Attempting download of new URL file:///C:/Family/bin/Microsoft.ReportViewer.WebForms.EXE. 
LOG: Attempting download of new URL file:///C:/Family/bin/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.EXE. 

UPDATE2

융합 로거를 사용 :

Server Error in '/' Application. 
-------------------------------------------------------------------------------- 

Parser Error 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source 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 5:  Namespace="AjaxControlToolkit" 
Line 6:  TagPrefix="ajaxToolkit" %> 
Line 7: <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
Line 8:  Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %> 
Line 9: 


Source File: /source/Report5.aspx Line: 7 

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]. 




-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.4028 

UPDATE

나는 로깅 설정이보다 자세한 오류가 발생했습니다 어떤 신발 그것은 "파일을 찾을 수 없습니다"오류입니다. 그러나 재배포 가능 파일을 설치 했으므로 DLL을 찾을 수없는 이유는 무엇입니까?

*** Assembly Binder Log Entry (11/21/2014 @ 4:00:35 PM) *** 

The operation failed. 
Bind result: hr = 0x80070002. The system cannot find the file specified. 

Assembly manager loaded from: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll 
Running under executable c:\windows\system32\inetsrv\w3wp.exe 
--- A detailed error log follows. 

=== Pre-bind state information === 
LOG: User = AURORAFCS\raj 
LOG: DisplayName = Microsoft.ReportViewer.WebForms, Version=8.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 
(Partial) 
LOG: Appbase = file:///C:/Family/ 
LOG: Initial PrivatePath = C:\Family\bin 
LOG: Dynamic Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\dc46260e 
LOG: Cache Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\dc46260e 
LOG: AppName = 807e5b0d 
Calling assembly : (Unknown). 
=== 
LOG: This bind starts in default load context. 
LOG: Using application configuration file: C:\Family\web.config 
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config 
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. 
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). 
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/dc46260e/807e5b0d/Microsoft.ReportViewer.WebForms.DLL. 
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/dc46260e/807e5b0d/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.DLL. 
LOG: Attempting download of new URL file:///C:/Family/bin/Microsoft.ReportViewer.WebForms.DLL. 
LOG: Attempting download of new URL file:///C:/Family/bin/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.DLL. 
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/dc46260e/807e5b0d/Microsoft.ReportViewer.WebForms.EXE. 
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/dc46260e/807e5b0d/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.EXE. 
LOG: Attempting download of new URL file:///C:/Family/bin/Microsoft.ReportViewer.WebForms.EXE. 
LOG: Attempting download of new URL file:///C:/Family/bin/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.EXE. 
LOG: All probing URLs attempted and failed. 
+0

[이 답변보기] (http://stackoverflow.com/q/16493817/656243). –

+0

프로젝트를보고 참조를 선택하고 포함 된 Microsoft.ReportViewer.WebForms.dll의 버전을보고 할 수 있습니까? –

+0

(저는 asp.net을하지 않습니다. 저는 수년 동안 관리되지 않은 네트워크를 관리하려고 노력 중이므로 올바른 정보를 얻기 위해 최선을 다할 것입니다.이 앱은 더 오래 주변과 애플 리케이션은 오래된 기록을 검색 제외하고 사용되지 않습니다.난 그냥 SQL 서버를 처리 할 필요가) – NonSecwitter

답변

3

대상으로하는 ReportViewer 컨트롤의 버전을 결정하고 웹 응용 프로그램과 동일한 서버에 적절한 패키지를 설치해야합니다.

Microsoft Report Viewer 2010 Redistributable Package

Microsoft Report Viewer Redistributable 2008

Microsoft Report Viewer Redistributable 2005

Microsoft Report Viewer 2008 SP1 Redistributable

나는 다음과 같은 논리는 확신 :의 ReportViewer 2010

  • 가에 대해 사용할 수 있습니다 SQL 서버 2008 (SP2) 및 2012

  • 의 ReportViewer 2008 년 2008 년과 2005 년

  • 의 ReportViewer 2005 I가 답을 발견 2005

+0

방금 ​​위의 의견을 보았습니다. –

+0

RV 2010 ---> SSRS 2008 (SP2) 2012 | RV 2008 -> SSRS 2005/2008 | RV 2005 -> SSRS 2005. 나는 그것이 그 것이라고 확신한다. –

+0

어떻게 결정합니까? – NonSecwitter

1

SQL 서버에 대해 사용할 수있는 SQL 서버에 대해 사용할 수 있습니다 이 블로그에 내 문제는 :

http://www.orcsweb.com/blog/desiree/access-report-viewer-dll-files-for-your-application/

난 그냥 필요한 DLL을 추출에 넣어 webapp이 찾고 있던 디렉토리 중 하나. 그래도 왜 그런 일이 일어 났는지는 확실하지 않습니다.

+0

웹 폴더의 빈에 파일을 던지고있는 것처럼 들립니다. 그것이 작동하기를 바라며, 당신이 GAC를 무효로 할 것입니다. –

관련 문제