使用分页控件AspNetPager出现的问题
在国内的服务器上都没有问题
但是放到国外的服务器上就会出现以下的异常
我查了一些资料,好像是信任级别的问题.但是空间提供商是不能修改他们服务器的信任级别的.FreeTextBox好像也不能用.请教一下大家有没有其他的解决方案?
Server Error in '/ ' Application.
--------------------------------------------
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:
Line 65: </tr>
Line 66: <tr>
Line 67: <td colspan= "4 " align= "right "> <webdiyer:AspNetPager ID= "AspNetPager_1 " runat= "server " FirstPageText= "首页 " LastPageText= "末页 " NextPageText= "下一页 " PrevPageText= "第一页 " ShowCustomInfoSection= "Left " Width= "100% " OnPageChanged= "AspNetPager_1_PageChanged " >
Line 68: </webdiyer:AspNetPager> </td>
Line 69: </tr>
------解决方案--------------------AspNetPager 这个应该没有问题的,不牵扯权限的问题。