这段时间一直在学习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 ,进去之后再也没有出现这样的问题了,这样的错误其实很简单,可是它费了我几个小时的时间,贴出来希望大家遇到这样的问题不再耽误这么长时间处理这样的错误