2

Closed

Add AllowPartiallyTrustedCallers assembly attribute

description

Adding the AllowPartiallyTrustedCallers assembly attribute will make the library medium trust friendly. I ran into an issue hosting on GoDaddy where I got the following exception when returning IPagedList<T> as the view model:
 
System.Security.SecurityException: That assembly does not allow partially trusted callers.
 
Adding the AllowPartiallyTrustedCallers assembly attribute fixed the issue. See http://stackoverflow.com/questions/1484431/asp-net-mvc-app-hosted-on-godaddy-has-securityexception for more info.
Closed May 4, 2010 at 3:49 AM by TroyGoode

comments

TroyGoode wrote May 4, 2010 at 3:49 AM

Fixed in the latest changeset (available on GitHub):

http://github.com/TroyGoode/PagedList

wrote May 4, 2010 at 3:49 AM

wrote Feb 14, 2013 at 7:18 PM

wrote May 16, 2013 at 9:27 AM