使用asp.net website administration tool时报错的原因

这段时间一直在学习MOSS的相关配置,在为MOSS 网站配置forms验证时到了使用asp.net website administration tool进入治理页面时抛出这样一个错误:

An error was encountered. Please return to the previous page and try again.

The following message may help in diagnosing the problem: System.ArgumentException: Illegal characters in path. at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) at System.IO.Path.GetFullPath(String path) at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath, Boolean& pathTooLong) at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath) at System.Web.Configuration.VirtualDirectoryMapping.set_PhysicalDirectory(String value) at System.Web.Configuration.VirtualDirectoryMapping..ctor(String physicalDirectory, Boolean isAppRoot) at System.Web.Administration.WebAdminPage.OpenWebConfiguration(String path, String appPhysPath, Boolean getWebConfigForSubDir) at System.Web.Administration.WebAdminPage.OpenWebConfiguration(String path, Boolean getWebConfigForSubDir) at System.Web.Administration.WebAdminPage.VerifyAppValid()

上网也找了查了不少资料也没解决问题,后来发现这么一句错误:Illegal characters in path,才知道不能把验证web application放在有文件夹名称包含有特殊字符尤其是汉字的根目录下,于是立即在新建了一个web application ,进去之后再也没有出现这样的问题了,这样的错误其实很简单,可是它费了我几个小时的时间,贴出来希望大家遇到这样的问题不再耽误这么长时间处理这样的错误

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值