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 unhanded 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

one person tell me this solution


Solution 1
Accept Solution Reject Solution

right click on you application 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.


Please tell me where is Proprieties i went there but there in no these all option so please give me screen shorts


but i did not get these option
Posted
Updated 9-Oct-11 21:45pm
v3

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