views:

400

answers:

1

Hi,

I've a large web application solution in Visual Studio. This solution contains some RDLC (client report files) in its folders. Whenever I publish it using Visual Studio, all *.rdlc files breaks. Indeed they convert to files with 1 KB size.

Why this happens and how can I fix it?

A: 

i had a problem after publishing web application to IIS 7.0, the problem was that the reports were not rendered, however, i did the following and it worked for me :

1- download ReportViewer2008-2005 Redistributable from here and install it on hosting machine

2- go to IIS Manager --> choose the Web Application which contains the reports, and then choose Handler Mappings

3- when in Handler Mappings, Add a new Handler, Set its info as the following:

Request Path : Reserved.ReportViewerWebControl.axd

Type: Microsoft.Reporting.WebForms (different verisons might be found, so use the latest)

Name: Reserved.ReportViewerWebControl.axd

i hope this helps.

Saeedouv
ReportViewer is used when a "server report" does not work in clients just because they have not correct ActiveX for rendering it. But my problem is completely different! After publishing my web app., all *.rdlc ("client reports") break and converts to 1 KB files that won't work in the application. BTW when I overright this broken files with their unpublished copies, they will be working again.I'm searching for some way that prevents breaking *.rdlc files while publishing.
afsharm
Actually, my case was not using server reports, i used Local Reports(client reports), and that what was problem, and solved it using the steps above, give it a try
Saeedouv