ASP.NET MVC の学習を始めたばかりで、ASP.NET MVC チュートリアルに従っています。
ページングのチュートリアルは VS2012 を使用して記述されているため、私は Visual Studio Express 2013 RC for Web を使用しています。
すべて正常に動作します。しかし、PagedList.mvc を追加するためのチュートリアルのすべての手順を使用して、ページの 1 つにページングを追加すると、すべて正常にコンパイルされます。特定のページにアクセスすると、次のエラー メッセージが表示されます。
Attempt by security transparent method
'PagedList.Mvc.HtmlHelper.PagedListPager(System.Web.Mvc.HtmlHelper, PagedList.IPagedList, System.Func
2) セキュリティ クリティカル タイプにアクセスするため'System.Web.Mvc.MvcHtmlString' failed.
Assembly 'PagedList.Mvc, Version=4.3.0.0, Culture=neutral,
enter code here PublicKeyToken=abbb863e9397c5e1' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model. Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.
この状況が起こっている理由を誰か教えてください。事前に多くの感謝とさようなら...