After the Asp.net. rdlc report is developed on the local machine, it is no problem to deploy it locally.
When the website is deployed on IIS after being published, the following error occurs on the new computer (only. Net framwork4.5 is installed:
"Cocould not load file or assembly Microsoft. reportviewer. webforms, version = 11.0.0.0 ......
Or
"Cocould not load file or assembly 'Microsoft. reportviewer. Common, version = 11.0.0.0 ......
To solve the problem above, install the following components:
Reportviewer. MSI
You may be prompted to install reportviewer. MSI:
Sqlsysclrtypes. MSI
After the above two components are installed, the following error may occur when you run the site again:
"ASP. NET reportviewer native compiler return value: '[bc2001] File 'error"
Don't worry. follow these steps:
1. Select "-" application pool "for this site, right-click"-", and click" Set application pool default settings ", for example:
2. Select "Process Model"> "ID"> "custom account" and set it to the administrator user name and password. The operation is successful.
References:
Http://stackoverflow.com/questions/22253607/could-not-load-file-or-assembly-microsoft-reportviewer-common-version-11-0-0-0
Http://randypaulo.wordpress.com/2011/07/28/asp-net-reportviewer-native-compiler-return-value-%E2%80%98bc2001-file-error/