I want to move all my essays on another blog here. The following is one of them. At that time, we used the RTM version of vs2005. I don't know if this problem still exists.
Recently, You need to draw a line chart based on the data, so you want to use the report tool that comes with vs2005. At the beginning, it was very smooth. Later, I found that the charts drawn on the page could not change with the changes in parameters. For this reason, I had spent most of the afternoon tossing the ship. It was really a trash, and finally I found that the reportviewer was missing. localreport. the call of refresh makes my head confused by working overtime ......
However, what I still cannot understand is the problems that occur when the system is released. I directly use the publish function of vs2005 to publish the system. It adopts the pre-compilation method. I removed the "allow this precompiled site to be updatable" option and published it to the server, the report cannot be displayed. After some tests, we found that the report file path could not be found. For this reason, I changed the reportpath ON THE ASPX page to a relative address; then, remove the reportpath attribute in the aspx file and use server in the CS file. the mappath method still does not work. There is no way, so you have to select the "allow this precompiled site to be updatable" option, publish, and then the report file on the server is available, select this option, I think it may have a slight impact on the performance, but the progress is very close, and this is the only thing to do first. If you find the answer to this question in the future, I will add it here.
[2006-2-13] edit:
It seems that the cause may be found. After publish is pre-compiled, the report file becomes a "marker" file like other aspx files after it is published to the server, you only need to overwrite the original report file with this "marker" file. This may be a problem with vs2005?