Web配置文件错误 [英] Web configfile Error

查看:74
本文介绍了Web配置文件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,先生.

我拥有开发的珠宝网站..我托管了服务器..当我运行该应用程序时,它显示出一些错误


hello sir..

i have develping jewellery website.. i hosted the server.. when i run the application it shows some error is


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:


Line 216:                <tr>
Line 217:                    <td colspan="2" style="text-align: center;">
Line 218:                        <AjaxData:GridView ID="Productgrid" runat="server" CssClass="GridViewStyle" CellSpacing="0"

Line 219:                            AlternatingRowStyle-CssClass="AltRowStyle" CellPadding="3" RowStyle-CssClass="RowStyle" DeleteCommandEvent="onDeleteCommand"

Line 220:                            HeaderStyle-CssClass="HeaderStyle" SelectedRowStyle-CssClass="SelectedRowStyle" EditCommandEvent="onEditCommand"




我如何纠正plz可以帮助我....




how can i rectify plz help me....

推荐答案



尝试执行您的错误所说的... :)

有关为某些程序集添加完全信任级别策略的详细信息,请参见此处 [
Hi,

Try to do what your error is saying... :)

For more info about adding full trust level policy for some assembly look here[^].


提示在错误消息中:
应用程序尝试执行安全策略不允许的操作.要授予此应用程序所需的权限,请与系统管理员联系或在配置文件中更改应用程序的信任级别."

请参阅MSDN:
ASP.NET信任级别和策略文件 [
The clue is in the error message:
"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."

See MSDN: ASP.NET Trust Levels and Policy Files[^] If this does not work, then you will have to talk to your web host.


这篇关于Web配置文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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