NHibernateを使用するWebアプリケーションをサーバーに展開しました。アプリケーションはコンパイルされ、ローカルのdevマシンで正常に動作しますが、新しいサーバーにNHibernateに問題があります。次のエラーが表示されます。展開されたWebアプリケーションでNHibernateの "セキュリティ"の問題
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: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=tokenkeyhere' failed.
設定ファイルのアプリケーションの「信頼レベル」を変更することを推奨します。どのように私はそれを正確に行うのですか?私はNHibernate Webアプリケーションを初めて配備したので、私は迷っています。
おかげで、私はこの打撃を与えるだろうそれがどのように進むのかを教えてください。 –
それはトリックをした、アレックス、もう一度ありがとう! –
よく聞いてください - 実際にはまだ中程度の信頼環境には展開していません:) – AlexCuse