Announcement

Collapse
No announcement yet.

ASP.net medium trust level

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • ASP.net medium trust level

    WordPress Hosting on SSD Servers
    Error

    ERROR: Server Error in /folder Application.
    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.


    Solution:

    If you find above error while running ASP.net webpages from your browser, it is because your domain is hosted on shared hosting environment and our shared hosting environment only runs at medium trust level.

    Users will not have privilege to change the ASP.NET2.0 trust level due to security considerations. As far as security is concern, the full trus level setting is not possible for shared hosting environment to be turned on and it is not possible to overwrite from the client side as well.

    However, you can check the following MSDN link for further information and make necessary changes to your script in order to make it running under medium trust level.

    You may try always put tag -- trust level="Medium" -- under system.web in web.config when developing an apps to make sure the trust level same as the machine trust level. Thus, you can see the problem in localhost first without testing on the production hosting server.
    Last edited by Marc_AccuWebHosting; 05-14-2016, 08:55 AM.

  • #2
    ASP.Net Hosting starts @ $3.18/Mo.
    Please also check the below mentioned URL:

    https://msdn.microsoft.com/en-us/library/zdh19h94.aspx
    Last edited by Marc_AccuWebHosting; 05-14-2016, 08:55 AM.

    Comment

    Working...
    X
    Sign up for a News Letter Click here to sign up