Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net ReportViewer控件-System.Security.SecurityException:该程序集不允许部分受信任的调用方_Asp.net_Reportviewer - Fatal编程技术网

Asp.net ReportViewer控件-System.Security.SecurityException:该程序集不允许部分受信任的调用方

Asp.net ReportViewer控件-System.Security.SecurityException:该程序集不允许部分受信任的调用方,asp.net,reportviewer,Asp.net,Reportviewer,我在ASP.NET网页上使用ReportViewer控件,当部署到托管站点时,会出现以下异常: Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change t

我在ASP.NET网页上使用ReportViewer控件,当部署到托管站点时,会出现以下异常:

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
我意识到这是因为我现在在一个中等信任模式下运行,而不是在开发时完全信任


我很难找到允许ReportViewer控件在中等信任环境中运行的解决方案。

遇到此问题时,我没有找到合适的答案。最后,我转移到一个允许ReportViewer控件(也称为完全信任)的主机。这是用于本地模式报告。。。。如果您在报表服务器上运行,则介质信任应根据以下条件工作:


很抱歉。我知道这不是你想听的。

谢谢你的链接。我想我不会在本地模式下运行来自这个托管提供商的报告。