分享

写回答

发帖

[评测] GoDaddy .net信任等级对asp.net程序的影响说明

GoDaddy GoDaddy 16602 人阅读 | 15 人回复

发表于 2009-11-21 11:42:23 | 显示全部楼层 |阅读模式

不少使用GoDadd windows主机的用户发现有些.net程序不能运行,经过查询资料得知:
GoDaddy虚拟主机.net  2.0是中等安全信任等级(medium trust), 而有些asp.net程序需要full trust所以安装出错,
还有些组件可以在asp和asp.net1.1中支持,但是在asp.net2.0/3.0/3.5中不能支持,
出现错误的用户可以试试把.net版本切换到1.1的试试

如果你的asp.net程序需要full trust,可以考虑下Ixwebhosting
具体在asp和asp.net1.1支持的组件可以参考:http://help.godaddy.com/article/1584

牵涉到专业词汇未进行翻译
原文如下:
Trust level refers to permissions set in the Web.config file that dictate what operations can and cannot be performed by Web applications. Our ASP.NET 3.5 shared hosting servers use the default Medium trust level with the addition of OleDbPermission, OdbcPermission, and a less-restrictive WebPermission.

Applications operating under a Medium trust level have no registry access, no access to the Windows event log, and cannot use ReflectionPermission (but can use Reflection). Such applications can communicate only with a defined range of network addresses and file system access is limited to the application's virtual directory hierarchy.

Using a Medium trust level prevents applications from accessing shared system resources and eliminates the potential for application interference. Adding OleDbPermission and OdbcPermission allows applications to use those data providers to access databases. WebPermission is modified to allow outbound http and https traffic
官方地址:http://help.godaddy.com/article/1039

更多关于Medium trust的相关内容:http://help.godaddy.com/search?q=+Medium+trust&x=0&y=0

[ 本帖最后由 add.c 于 2010-3-2 09:47 AM 编辑 ]

回答|共 15 个

yangwings

发表于 2010-1-29 21:48:11 | 显示全部楼层

真是大海捞针啊,终于明白为什么有些asp.net程序不能运行了。
add.c真是厉害
RAKSmart

client

发表于 2010-1-29 23:06:28 | 显示全部楼层

程序不能安装真是非常非常郁闷的一件事情

wuhanjw

发表于 2010-4-24 17:05:38 | 显示全部楼层

不会吧,这么麻烦,我的也是一样上传运不行成.
Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

wuhanjw

发表于 2010-4-24 17:06:46 | 显示全部楼层

我的是2.0  现在谁用1.1的啊.

chemcas

发表于 2010-4-25 07:46:32 | 显示全部楼层

绝大多数程序是不需要full trust的,如果你有源代码,把其改为medium trust再重新编译就可以了。

评分

参与人数 1金币 +2 收起 理由
add.c + 2 助人为乐

查看全部评分

add.c

发表于 2010-4-25 09:01:41 | 显示全部楼层

回复 6# 的帖子

国内的很多asp.net程序都需要full trust
RAKSmart

piazini

发表于 2011-5-29 10:45:10 | 显示全部楼层

GoDaddy放了asp.net怎么报500错呢?

我的也是asp.net 为什么访问报500的错呢? 请老鸟回答!
未命名.jpg
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2011-5-29 13:49:46 | 显示全部楼层

除了程序的问题,可能没有设置读写权限什么的,可以参考GoDaddy 500错误解决
回复 支持 反对

使用道具 举报

piazini

发表于 2011-6-2 00:37:13 | 显示全部楼层

回复 9# 的帖子

程序好像没问题! 权限也开了!就是不知道怎么不能访问! 我在目录下放了html也打不开! 输入了路径也不能访问!怪了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则