PDA

View Full Version : سوال: مشکل Trust Level درسایت



dr_g
سه شنبه 11 مرداد 1390, 10:41 صبح
با سلام
مدتیه که وقتی یکی از سایتهامو (www.mydiplomat.ir)باز (http://www.mydiplomat.ir)باز) می کنم با پیغام خطای زیر مواجه می شم:


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: System.Security.Permissions.SecurityPermission


بعد از مدتی جستجو و تماس با مدیریت هاست تغییراتی توی فایل وب کانفیگم دادم و قطعه کد زیر رو اضافه کردم:


<locationallowOverride="false">
<system.web>
<securityPolicy>
<trustLevelname="Medium"policyFile="Web.config" />
</securityPolicy>
<trustlevel="Medium"originUrl="" />
</system.web>
</location>

اما بعد از این تغییرات با این پیغام خطا مواجه میشم:

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

دوستان ممنون میشم کمکم کنین.چند روزه که سایت تعطیله