I am using a hosting which required medium trust level.
but as i change to medium trust level
it throw this exception
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
on local server and has to change to full trust level again
but full trust level giving me this
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.
So now m stuck what to do ..
hosting provider saying me to change trust level properly not simply from webconfig file.
I changed from webconfig and republished the project as well..