分享

写回答

发帖

[提问] godaddy的windows主机,.net子网站不能访问,权限问题?

GoDaddy GoDaddy 3371 人阅读 | 6 人回复

发表于 2010-9-13 15:15:39 | 显示全部楼层 |阅读模式

godaddy的windows主机建立了一个子网站,网站源码是.net程序,主网站访问正常,但子网站不能访问。
子网站my.cnmouldmaker.com,和主网站www.cnmouldmaker.com的网站源码是一样的,为何子网站会不能访问呢?请问是权限问题吗?我已经设置了可读,可写权限,还是不能解决,请各位大侠帮忙!不胜感激!

设置的子网站MY文件夹权限:
不选,Inherit (Inherit permissions from parent directory)
选中,Read (Directory contents are visible to users)   
选中,Write (Applications can write to this directory)
此选中设置无效,Reset all children to inherit (All subdirectories will be reset to inherit from current directory)


访问my.cnmouldmaker.com错误反馈如下:
Server Error in '/my' 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: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

[ 本帖最后由 hiro2012 于 2010-9-13 03:19 PM 编辑 ]

回答|共 6 个

add.c

发表于 2010-9-13 16:18:20 | 显示全部楼层

看提示貌似程序不支持, 但你又说根目录可以正常 , ...
设置权限的时候选后三项

tianping88

发表于 2010-9-13 21:43:51 | 显示全部楼层

你可以试一试将主目录下的bin目录改一下,看子目录能不能访问,一般不建议在主目录和子目录下使用同一.net程序,有可能发生冲突。我也遇到过。如果将两个同样的程序绑定在子目录则不会出现这种问题。
RAKSmart

hiro2012

发表于 2010-9-13 23:03:45 | 显示全部楼层

回复 2# 的帖子

最后一项权限不能选中设置:Reset all children to inherit (All subdirectories will be reset to inherit from current directory) ,还是访问出错,请问还有没其他办法解决?

hiro2012

发表于 2010-9-13 23:32:32 | 显示全部楼层

回复 3# 的帖子

修改主目录下的bin,子网站依旧访问出错,还有其他方法可行吗?

maoyaa

发表于 2010-9-20 20:42:00 | 显示全部楼层

你的网站我打不开 = =
RAKSmart

ExpTey丶小资

发表于 2010-10-11 17:51:54 | 显示全部楼层

godaddy写了啊,不是支持.NET吗?
RAKSmart
您需要登录后才可以回帖 登录 | 注册

本版积分规则