请帮助我,我正在解决这个错误. [英] Please help me i Am geeting this Error.

查看:132
本文介绍了请帮助我,我正在解决这个错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"/gifha"应用程序中的服务器错误.
安全异常
说明:应用程序尝试执行安全策略不允许的操作.要授予此应用程序所需的权限,请联系您的系统管理员或在配置文件中更改应用程序的信任级别.

异常详细信息:System.Security.SecurityException:该程序集不允许部分受信任的调用方.

源错误:

生成此未处理异常的源代码仅在以调试模式编译时才能显示.要启用此功能,请按照以下步骤之一进行操作,然后请求URL:

1.在生成错误的文件顶部添加"Debug = true"指令.示例:

<%@页面语言="C#" Debug ="true"%>

或:

2)将以下部分添加到应用程序的配置文件中:

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

请注意,第二种技术将使给定应用程序中的所有文件都以调试模式进行编译.第一种技术将仅使特定文件在调试模式下进行编译.

重要:在调试模式下运行应用程序确实会导致内存/性能开销.在部署到生产方案之前,应确保应用程序已禁用调试.










请帮我告诉我,我也给gifha文件夹提供读写权限,但仍然出现此错误

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

推荐答案

右键单击您从vs
的应用程序
1.转到属性
2.单击安全性
3.选中启用单击一项安全性
4.这是部分受信任的应用程序
6.保存并构建您的应用程序
5.build
6.转到应用程序"属性并将其更改为完全受信任的完成.
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.


这篇关于请帮助我,我正在解决这个错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆