Migration and deployment of Crystal Report in Asp.net 2.0

Source: Internet
Author: User
Tags parse error
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.