关于CrystalReport for vs2010 水晶报表 webform发布的问题
看了好多帖子,都说是不在服务器上安装程序就用不了水晶报表,可是我为什么发布了连主页都打不开了呢,提示:
Server Error in '/xxxxx' Application.
--------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
我搜到一些解决方法,其中提到:
1、在你的开发环境中找到Visual Studio安装目录下的"SDK"v2.0"BootStrapper"Packages"CrystalReports,将安装文件CRRedist2010_x86.msi,复制到服务器中并安装。
可是我的vs2010里没有CRRedist2010_x86.msi这个文件啊
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0这里面是
package.xml
C:\Program Files\Microsoft Visual Studio 10.0\SDK下只有个3.5,里面有个bin文件夹,还是空的
我在服务器上安装了CRforVS_redist_install_32bit_13_0
后来也发现是web.config的问题,我把原来老的web.config替换上去就能打开网站,可是加了水晶报表的web.config在我开发的这台电脑上调试没有问题啊
------解决方案--------------------
CRRedist2010_x86.msi需要到SAP网站上去下载!
还要注册相应的dll,并且将系统盘的C:\Inetpub\wwwroot\aspnet_client文件夹复制到服务器网站路径里!