高分求高手解决一个安全异常问题!解决可多加分!
前几天做了一个项目~~发布到国内得一个服务器上好好得能用~~但是发布到GODADDY得服务器上(用得虚拟主机)就出现安全异常问题.异常原因及代码如下:
Security Exception
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.
Source Error:
<tr>
Line 120: <td style="height: 25px; text-align:center;">
Line 121: <webdiyer:AspNetPager Style="font-size: 12px" ID="AspNetPager1" runat="server" HorizontalAlign="Center"
Line 122: ShowCustomInfoSection="Left" Width="534px" meta:resourceKey="AspNetPager1" InputBoxStyle="width:19px"
Line 123: CustomInfoHTML="µÚ<font color='red'><b>%CurrentPageIndex%</b></font>Ò³ ¹²%PageCount% Ò³ %StartRecordIndex%-%EndRecordIndex%"
错误代码在121行!这里是我用得一个AJAX得分页控件.页面上已经导入,配置文件中我也已经配置了此控件!在网上有也搜索过类似得问题,找过GODADDY得服务器空间商,最终得结果是空间商那边不会有任何问题~我想也是,毕竟那么大那么有名气得一个服务器空间商不会出现服务器问题.原因还是在自己得项目中!但是我不知道该如何去解决! 有的人说trust level 必须是full 但是配置文件里写了之后还是不行~还会提示这一行错误!真得没有办了~~希望高手能解决!! 如真解决另外还可以送分!