[评测]
GoDaddy .net信任等级对asp.net程序的影响说明
|
|
不少使用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 编辑 ] |
|
|
|
|
|
|
|
|
|
|
yangwings
发表于 2010-1-29 21:48:11
|
显示全部楼层
真是大海捞针啊,终于明白为什么有些asp.net程序不能运行了。
add.c真是厉害 |
|
|
|
|
|
|
|
|
|
|
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
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
chemcas
发表于 2010-4-25 07:46:32
|
显示全部楼层
|
绝大多数程序是不需要full trust的,如果你有源代码,把其改为medium trust再重新编译就可以了。 |
评分
-
查看全部评分
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-4-25 09:01:41
|
显示全部楼层
回复 6# 的帖子
国内的很多asp.net程序都需要full trust  |
|
|
|
|
|
|
|
|
|
|
piazini
发表于 2011-5-29 10:45:10
|
显示全部楼层
GoDaddy放了asp.net怎么报500错呢?
|
我的也是asp.net 为什么访问报500的错呢? 请老鸟回答! |
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2011-5-29 13:49:46
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
piazini
发表于 2011-6-2 00:37:13
|
显示全部楼层
回复 9# 的帖子
|
程序好像没问题! 权限也开了!就是不知道怎么不能访问! 我在目录下放了html也打不开! 输入了路径也不能访问!怪了! |
|
|
|
|
|
|
|
|