Hi Guys,
I have build a website and it was working fine for sometime, absolutely fine.... for few days now I get the following
error when i am accessing Login page.
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.Net.NetworkInformation.NetworkInformationPermission, System, Version=4.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089' failed.
Further, when I contacted godaddy they wanted me to change the trust levels to medium. How can i do that?
Please help...
NB: I have deleted the <machineKey validation> from the web.config file.
I have tried this:
<trust level="Medium" />
<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" />
but still I get the security error
The application attempted to perform an operation not allowed by .....any inputs will very helpful