Medium Trust-System.Configuration.ConfigurationPermission Error

The Error:

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 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.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]

Fix:

Open the web.config file and look for:

<configSections>

<section name="Blah" type="Some.Fancy.Component" />

[...]

</configSections>

At the end of each section name add the following:

requirePermission="false"

<configSections>

<section name="Blah" type="Some.Fancy.Component" requirePermission="false" />

[...]

</configSections>

Save the web.config and you should be good to go, no IIS reset necessary