2014-04-03 150 views
1

我想開發一些SSRS的VS2008報告,當我預覽他們,我收到以下錯誤信息:無法預覽SSRS 2008年報告

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

我發現它...我需要

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

添加到C:\ Program Files文件(x86)的\微軟的Visual Studio 9.0 \ Common7 \ IDE \ devenv.exe.config文件不是C :\ Program Files文件(x86)的\微軟的Visual Studio 9.0 \ Common7 \ IDE \ PrivateAssemblies \ RSPreviewPolicy.config

一旦我做到了,並重新啓動VS2008它工作得很好