السلام عليكم ورحمة الله وبركاته
لدي موقع بلغةC# asp.net وكان يعمل بكفاءة لمدة عامين .. ولكن لإحتياطات خاصة بالأمن على السيرفر قام المزود برفع حالة الأمن على السيرفر servcer security level وطلب مني تعديل الكود الخاص بالموقع لرفع حالة الأمن لأن الموقع أصبح يظهر رسالة الخطأ التالية :
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: Request failed. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
ولكي أتخلص من هذه الرسالة لابد من رفع المستوى ملفات config
وقرأت كثيرا .. وجربت أكثر .. وحاولت وضع الأمر
<trust level="Medium"/>
في ملف
web.config
ولكن دون جدوى
وأربد أن أعرف ما هي الخطوات اللازمة لأواكب مستوى الأمان على السيرفر وما هي الأوامر الخاصة بذلك .. وجزاكم الله خيرا