Click here to Skip to main content
13,767,620 members
Rate this:
 
Please Sign up or sign in to vote.
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 1-May-13 3:52am
Updated 30-Apr-17 7:41am
Comments
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.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
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
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...
30-Sep-15 7:04am
   
and you stop doing F******* comment
CHill60 30-Sep-15 7:20am
   
No need to get rude. This problem will need to be resolved by the administrators of the hosting site. The way to get to the administrators is via the Support people. If you want to shout at someone, shout at the people responsible for the problem, not the person that told you how to resolve it
30-Sep-15 7:24am
   
some people are going as over smart, my question is that i want to run my website on medium trust level, how i can do

you know that
CHill60 30-Sep-15 7:43am
   
We can't answer that without a lot more detail - use the "Ask a Question" link to post your own question. Include as much detail as possible - including details of your config
Sathish ku 26-Sep-17 2:54am
   
It works for me,
<customErrors mode="RemoteOnly" defaultRedirect="yoursite.html"/>
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

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

<system.web>
    <customErrors mode="Off"/>
    <trust level="Full" />
</system.web>
  Permalink  
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
souvikcode 23-Jul-17 12:36pm
   
Solved my problem too. Thanks
abdulsamid 31-Jul-17 7:54am
   
thanks bro its work
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

This issue was due to third party dll, which is solved now.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.181116.1 | Last Updated 30 Apr 2017
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100