asp.net中的信任级别问题 [英] Trust level issue in asp.net

查看:71
本文介绍了asp.net中的信任级别问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站托管到Direct-I共享主机..当我从本地运行我的网站工作正常。但是在将它转移到服务器之后它工作正常,但现在Direct-I已将信任级别从完全更改为中等,因为该网站无法工作并且给我以下错误: -



此配置部分不能在此路径中使用。当站点管理员使用继承的配置文件中的< location allowoverride =false>锁定对此部分的访问权限时,会发生这种情况。



我跟Direct-I的人说过,他们告诉我他们无法改变信任级别,因为安全问题是中等的,并要求我改变代码。但是当我将信任级别设置为中等并且在本地运行相同的代码时,没有任何代码可以改变,因为它的工作非常好。



我搜索解决方案他们要求改变的seleval网站

< location allowoverride =Allow>在applicationHost.config中,但该站点是在服务器上托管而不是在我们的最终。



还有一点注意到我的系统从服务器上完全打开了网站但是当客户试图访问该网站时它没有打开。从技术上讲,如果他们设置了安全性,那么它不应该打开或完全打开。



请帮助我。

提前致谢

I have one website hosted to Direct-I under shared hosting..When i am running my website from local its working fine. But after transferring it on server it was working fine before but now Direct-I have Changed Trust level from "Full" to "Medium" and becuase of that the website is not working and giving me following error:-

"This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowoverride="false"> from an inherited configuration file."

I spoke to Direct-I people they told me that they can not change the trust level from medium becuase of security issues, and asking me to change in code. but there is nothing in code to change becuase when i set the trust level to medium and run the same code locally its working absolutely fine.

I search for the solution on seleval sites they are asking to change the
<location allowoverride="Allow"> in applicationHost.config but the site is hosted on the server and not on our end.

And one more point is noted that the website open on my system from server perfectly but when clients try to access the website its not opening. Technically if they have set the security then either it should not open or open completely.

Please Help me on this.
Thanks in advance

推荐答案



尝试从web.config中删除configSection并再次上传。

它可能解决你的问题。
Hi,
try to remove configSection from web.config and upload it again.
It might solve your issue.


这篇关于asp.net中的信任级别问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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