Click here to Skip to main content
15,912,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Server Error in '/gifha' Application.
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: That assembly does not allow partially trusted callers.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.










Please Help me tell me i also gifha folder give write and read permission but still getting this error
Posted
Updated 4-Oct-11 2:01am
v2

1 solution

right click on you appication from vs

1.go to Properties
2.click on security
3.check Enable click one security
4.this is partial trusted application
6.save and build your application
5.build
6.go to Application properties and change it to full trusted done.
 
Share this answer
 
Comments
irfanansari 4-Oct-11 8:17am    
and then may i load website on domain?
irfanansari 10-Oct-11 3:38am    
Please tell me where is Prppaties i went there but there in no these all option so please give me screen shorts

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