If you have been working with Crystal Reports and I could bet at least once you might faced the issue “Bobj” is undefined . This is most common error in using crystal reports. Let me write a solution.
- You need to use Web Application Project,No Website Project because Web App will combine DLL to project also.
- Copy C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13 (you’ll got it when you install -CRforVS_redist_install_32bit_13_0.exe) To your project such as (ProjectName/crystalreportviewers13)
- Copy this below to your web.config
Note: in case "/crystalreportviewers13" is not working, try to add "~" symbol.
Publish your web application with FTP Mode to your any folder,and copy this publish to your web server then TEST it!
Note :
Another issue with the CR runtime installer is that it always install the necessary web files (such as javascript, icons, etc) to "C:\inetpub\wwwroot\aspnet_client\system_web\2_0_50727". So, if you changed your default IIS web folder to somewhere else, please make sure that you copy "crystalreportviewers13" from the above mention folder to your new IIS web folder.