Subscribe to Youtube channel

System.Security.SecurityException: Request failed. issue on web server [resolved]

While hosting your website on shared hosting server you might get the System.Security.SecurityException: Request failed issue which will give you below stack trace on landing page of the website.

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.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

  • You can add below code to your Application web.config file to resolve it permanently

    <customErrors mode="Off"/>
    <trust level="Full" />
  • This issue might occur in the case when server does not have higher version of .Net framework installed. suppose your application is developed to work with 4.5 run-time framework but the same version is not installed on the server. You can ask your web hosting provider to install the required version on the server so that your website will work as expected.

You can refer below Microsoft support post for detailed information on this issue.


  1. Roberts’ workplace gets about $60,000 a yr to serve the Wichita metro space and believes that is greater than what the southwest and southeast task forces obtain. There was a northeast task force, however Roberts says it’s now not energetic. Efforts to succeed in the northeast’s task force chair, Peter Gusman, have been unsuccessful. “We’re worried that the necessity is going to simply increase,” said Stephenie Roberts, a Wichita social worker and certified gambling counselor. Adams announced the appointment of Ulrich in early May together with Kazimir Vilenchik as first deputy commissioner. Adams didn’t take 원엑스벳 questions from reporters as he arrived at City Hall on Tuesday afternoon.


Post a Comment

Popular posts from this blog

Root your Gingerbread 2.3.4 android Mobile Phone

Implement Logging in CSV file using Nlog in .net core MVC application- part 2

Disable backspace key using Jquery

Restore the lost focus of Auto post back controls in update Panel control

Devexpress Datebox date formatting in angular 6 with example

Implement Nlog in .Net core MVC application part 1

Angular User Session Timeout example step by step

How to Import CSV File and bind csv file data to gridview in using c#

Add Comma automatically while entering amounts in textbox using Javascript