Click here to Skip to main content
15,886,791 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello,

I made a web application in which I want to show one report. I took report viewer from toolbox and placed on my web form. Its working fine when I'm working in my visual studio (development mode) but when I host or put it in my www.root folder, it shows me an error : "The defination of the report 'Main Report' is invalid. The Report definition is not valid. Details: Data at the root level is invalid. I googled this error and came to know to replace the .rdlc file in your iis folder to the original/development one. I did it. Now its not showing me error, but its not showing me data as well. Only header of report which is page no, export to,is visible.

Plz I need urgent help...

Thanks
Posted
Comments
sahabiswarup 10-Jan-12 3:02am    
If you want to display Crystal Report you need to add Crystal Report assemblies. It will be better if you try HTML Report Viewer.
mirzamujib 10-Jan-12 3:44am    
Thanks for your feedback. Actually its microsoft report viewer. And when I'm trying to add reference microsoft.reportviewer.processingobjectmodel.dll, I'm unable to find in my .net assembly tab.

1 solution

Exclude the rdlc files form the project temporarily before precompilation(publishing), then copy the rdlc file back to the same location on the deployment folder
 
Share this answer
 
Comments
mirzamujib 10-Jan-12 4:20am    
ok, i'll try and let u know...
thanks...
mirzamujib 10-Jan-12 4:41am    
I tried but still no data shown in my report(as I said above, its just shows the header of the report i.e. 'export to','page no', etc.)

thanks again...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900