Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.44/5 (3 votes)
I have my ASP.NET application hosted on godaddy server. This appliation is running perfectly fine

from one year, but from yesterday following error is coming when I try to open the application in

browser not even the login page is appearing.

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 for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.


I didn't make any update or did not change any setting.

Please help me as early as possible.
Posted
Updated 30-Apr-17 6:41am
Comments
[no name] 1-May-13 8:56am    
"contact your system administrator"
RelicV 1-May-13 9:03am    
see the link if it helps you or not.
http://stackoverflow.com/questions/304616/another-security-exception-on-godaddy-after-login-attempt/2488591#2488591
ZurdoDev 1-May-13 11:31am    
As the error says, contact GoDaddy support. It's a configuration issue.
Karthik. A 1-May-13 18:59pm    
Looks like your application attempts to load something that requires "full trust". Thus, this is most likely some trust issue.

The exception itself states that change the application's trust level in the configuration file. Have a look at ASP.NET Trust Levels and Policy Files and How to resolve Security Exception. This exception can be due to lack of proper trust level in the machine.config file on the server.You can contact the administrator for further assistance.
 
Share this answer
 
Comments
faizanSharif 2-May-13 1:48am    
Thanks for your reply Rohan Leuva, actually I google a lot before posting this question, the scenario is this, my application was perfectly working day before yesterday but from yesterday even login page is not appearing. I contact godaddy and according to them they didn't change any configuration.

I am actually very confused that why this trust level issue coming from yesterday? why this issue not coming before because everything is same and i did not add any other reference in the project.

I am also using devexpress controls in this ASP.NET project. If anybody has any idea regarding this issue please help me out. I am posting again the whole error again.


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 for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 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.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
DevExpress.Web.ASPxUploadControl.UploadProgressManager.ProcessRequest(RequestProcessState& state) +0
DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule.BeginRequestHandler(Object sender, EventArgs e) +39
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Thanks7872 2-May-13 2:03am    
go through this link
[no name] 27-Aug-15 7:42am    
same here iam using c# .net application which is hosted on bigrock
i got following error provide me solution

Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

replay please
thanks in advance
Thanks7872 27-Aug-15 7:44am    
This is something,support people are getting paid for. Call them.
phil.o 30-Sep-15 7:00am    
If you can't bother reading documentation and contacting the right support center, then stop coding...
System.Security.SecurityException: Request for the permission of type 'System.Net.SocketPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

following solution of above error

XML
<system.web>
    <customErrors mode="Off"/>
    <trust level="Full" />
</system.web>
 
Share this answer
 
Comments
Member 10718204 24-Sep-14 0:25am    
Thanks a lot...
Arkadeep De 24-Feb-15 13:20pm    
thanks a lot buddy. your "trust level" just saved me.... :)
vipan.net 19-May-15 0:53am    
Thanks
jjratchagan 8-Nov-16 1:25am    
Thanks a lot. This solution worked for me.
dippaul 4-Jun-17 0:08am    
this worked..thanks
This issue was due to third party dll, which is solved now.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900