|
|
1
6
可以在安全应用程序块使用的连接字符串中输入标记{currentPath}。 这给了我想要的行为,允许从应用程序文件夹访问AzMan.xml文件。 我正在使用的连接字符串是:
|
|
2
5
添加~将使其相对于应用程序
|
|
|
3
0
如果使用{currentPath},请确保在进行“AuthorizationFactory.GetAuthorizationProvider”调用之前正确设置了当前目录。我还使用企业库安全应用程序块。 My.Computer.FileSystem.CurrentDirectory=HttpContext.Current.Request.PhysicalApplicationPath |