Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Everyone,

In my application users can actually export in pdf format, but after i have uploaded my application to the server, while trying to export, it's throwing object reference not set to the instance of an object

the application is working just fine in my local host, i will appreciate any assistance from anyone who may have had similar challenge.

What I have tried:

I have done a few researches online, the popular suggestion was to look for hidden row in the report and change the visibility property to show which i did, yet the issue not resolve.
Posted
Updated 21-Jun-16 22:37pm
Comments
Richard Deeming 21-Jun-16 11:58am    
So you want us to help you fix an error in your code, without being able to see your code?

Click "Improve question" and post the relevant parts of your code. Remember to indicate which line of code the error is thrown from.

Alternatively, debug your code to determine which variable is null when you think it shouldn't be. Then work backwards to find out why it's null, and resolve the problem.
Uwakpeter 22-Jun-16 2:50am    
there is no error on my code, i even check the log file no error while hosting on the sever, beside i dont write code for the pdf export, the pdf export comes with the rdlc.
Richard Deeming 22-Jun-16 8:45am    
Well, if there's no error, then why did you say the code was throwing an error?

You haven't shown your code, and you haven't shown the details of the error. Without those, we can only offer the most general of advice: debug your code.

1 solution

Kindly check the Versions of all ReportViewer's DLL files.

In Projects Reference, check the version of all ReportViewer's DLL. The version for all the DLL files of ReportViewer must be same.

Then check the version of those files which u have hosted. U'll find those file in bin folder of your hosted application.

Both the local and hosted version of DLL must Match.
 
Share this answer
 
v2

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