无法预览SSRS 2008报告

时间:2014-04-03 18:02:59

标签: reporting-services ssrs-2008

我试图在VS2008中开发一些SSRS报告,当我预览它们时,我收到以下错误消息:

Failed to load policy file: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\RSPreviewPolicy.config
This method explicitly uses CAS policy, which has been obsoleted by the .NET Framework.  In order to enable CAS policy for compatibility reasons, please use the NetFx40_LogacySecuirityPolicy configuration switch.  Please see http://go.microsoft.com/fwlink/?LinkID=155570 for more information

为了尝试解决,我添加了以下脚本我的RSPreviewPolicy.config文件

<runtime>
  <NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>

但是,我重新启动了我的机器,这并没有照顾它。还有其他想法吗?

1 个答案:

答案 0 :(得分:1)

我发现了......我需要添加

<runtime>
  <NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>

到C:\ Program Files(x86)\ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ devenv.exe.config文件而不是C:\ Program Files(x86)\ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ PrivateAssemblies \ RSPreviewPolicy.config

一旦我这样做并重新启动VS2008就可以了。