R
Rajesh Chaudhary
Hello everybody,
I have develoved a asp.net application, it is running fine in developmnet
environment. But when I deploy it on hosting server, the following error
message was displaying during browsing the site:
--------------------------------------------------------------
Security Exception
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 failed.
-------------------------------------------------------------------------------------
Then I contacted to hosting support they said their sever is configured to
trust level medium.
If I added following lines in my web.config:
<trust level="Full" originUrl=""/>
Then it is not allowed because the hosters has set this setting in
machine.config <location allowOverride="false">
So Please suggest me that how can I run my ASP.net site on hosting server in
medium trust level.
I have develoved a asp.net application, it is running fine in developmnet
environment. But when I deploy it on hosting server, the following error
message was displaying during browsing the site:
--------------------------------------------------------------
Security Exception
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 failed.
-------------------------------------------------------------------------------------
Then I contacted to hosting support they said their sever is configured to
trust level medium.
If I added following lines in my web.config:
<trust level="Full" originUrl=""/>
Then it is not allowed because the hosters has set this setting in
machine.config <location allowOverride="false">
So Please suggest me that how can I run my ASP.net site on hosting server in
medium trust level.