ASP.NET error – Unable to read the security policy file for trust level ‘medium’

I needed to change my web.config file to development in a medium-trust environment, because that is what my hosting provider allows. I added this line in the configuration\system.web element:

<trust level="medium"/>

After trying to view my application, I immediately received this error:

Server Error in ‘/’ Application.
——————————————————————————–
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: Unable to read the security policy file for trust level ‘medium’.

Porque? Because the web.config file is case-sensitive. This simple change made the application work again:

<trust level="Medium"/>
Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: