本地运行时是好的,但是发布到服务器上时却出现如下错误:
An error occurred during local report processing.
o The definition of the report 'Main Report ' is invalid.
+ An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC2001] file 'C:/WINDOWS/TEMP/gwud19ll.0.vb ' could not be found’
原因是服务器上的aspnet账号没有读写'C:/WINDOWS/TEMP这个文件夹的权限,在这个文件夹上加上aspnet账户的读写权限,然后再高级里面把第一个选项选上即可
本文介绍了一种常见的服务器报告处理错误及其解决方案。错误出现在本地运行正常但部署到服务器后,由于ASPNET账户缺少对临时文件夹的读写权限导致。通过为该账户添加必要的权限可以解决问题。

被折叠的 条评论
为什么被折叠?



