내 웹 응용 프로그램을 게시하고 Microsoft ReportViewer를 사용하여 보고서를보고 싶습니다. 모든 작업은 로컬에서 이루어 지지만 게시 할 때 많은 문제가 발생했습니다. 마침내 나는 고칠 수없는 것을 보았습니다..rdlc를 서버에 배포 할 때의 문제. (즉, 로컬 보고서가있는 ReportViewer)
은 지금까지 나는 내 서버에 Miscrosoft 보고서 뷰어 재배포 가능 패키지 2008
패키지를 설치하여 ...
- 처음 3 문제를 해결했다.
- "rdlc"파일을 "Content"로 변경하고 buildProvider를 web.config 파일에서 제거했습니다. 의 ReportViewer
에 대한 IIS에서 관리되는 처리기 구성
[InvalidCastException: Unable to cast object of type 'Microsoft.Reporting.WebForms.ReportHierarchy' to type 'Microsoft.Reporting.WebForms.ReportHierarchy'.] Microsoft.Reporting.WebForms.ReportDataOperation..ctor() +253 Microsoft.Reporting.WebForms.HttpHandler.GetHandler() +669 Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +13
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
오 대단해! 물론 당신은 이미있는 타입으로 객체를 캐스팅 할 수 없습니다 !!!! 아무도 이걸 고칠 줄 알아요? 당신은 SP1으로 업그레이드 Visual Studio가없는 경우
감사합니다,
저스틴
고마워요. 이것은 나를 위해 일했다. 나는 Visual Studio에서 버전 9를 사용했고 IIS는 버전 10을 사용하고있었습니다. IIS에서 처리기를 9로 변경하면 효과가있었습니다. –