Asp.net 2.0 crystal report, if the target machine does not have the corresponding Program In IIS.
Error Description: parser Error
Description: An error occurred during the parsing of a resource required to service this
Request. Please review the following specific Parse error details and modify your source file
Appropriately.
Parser error message: cocould not load file or assembly 'Microsoft. reportviewer. webforms,
Version = 8.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a 'or one of its
Dependencies. The system cannot find the file specified.
[Solution]
Go to the c: \ windows \ Assembly directory of your development and use machine to check whether the following assembly is installed in GAC ():
Because the resource manager uses shell extensions to view the Assembly installed in GAC, we cannot see where the actual directory of these assembly is currently deployed. You can view the program directory in command line mode, go to the X: \ windows \ Assembly directory, and find the program directory related to the crystal report ():
We can roughly see the deployment structure of GAC. The Assembly names we see in the browser correspond to the names of each directory under the Assembly directory. Enter a specific directory and a level-1 subdirectory. The directory name is based on the version number of the Assembly published to GAC and the Public Key mark. (See the red section below)
Go to the subdirectory, and we can see the real location of the Public deployed assembly. ():
The next step is to copy the assembly to the target machine, run gacutil/I filename, and install the Assembly to GAC. The assembly to be copied is as follows:
1) Microsoft. reportviewer. Common. dll
2) Microsoft. reportviewer. processingobjectmodel. dll
3) Microsoft. reportviewer. webforms. dll