无法打开物理路径的配置
The Configuration for physical path can not be opened
我正在尝试加密我的 web.config
文件连接字符串详细信息,但出现错误
The configuration for physical path "Path Goes Here" can not be opened
这是在 Visual Studio 命令提示符下执行的命令。
aspnet_regiis.exe -pef “connectionStrings” “C:\Users\Shi\Documents\ProjFolder\StudentApp\StudentApp” -prov "StudentProvider"
P.S: 我把路径和文件夹的写权限给大家了。
命令有什么问题?
aspnet_regiis -pe "connectionStrings" -app "/SampleApplication" -prov "RsaProtectedConfigurationProvider"
如果应用程序已经托管在 IIS 上,这是执行此操作的方法。 -site 选项也可以指定。
确保您有 RSA 密钥容器。更好的想法是在代码中实现它,以便在首次调用应用程序时进行加密。在代码中有很多方法。
https://msdn.microsoft.com/en-us/library/system.configuration.rsaprotectedconfigurationprovider.aspx
我正在尝试加密我的 web.config
文件连接字符串详细信息,但出现错误
The configuration for physical path "Path Goes Here" can not be opened
这是在 Visual Studio 命令提示符下执行的命令。
aspnet_regiis.exe -pef “connectionStrings” “C:\Users\Shi\Documents\ProjFolder\StudentApp\StudentApp” -prov "StudentProvider"
P.S: 我把路径和文件夹的写权限给大家了。 命令有什么问题?
aspnet_regiis -pe "connectionStrings" -app "/SampleApplication" -prov "RsaProtectedConfigurationProvider"
如果应用程序已经托管在 IIS 上,这是执行此操作的方法。 -site 选项也可以指定。
确保您有 RSA 密钥容器。更好的想法是在代码中实现它,以便在首次调用应用程序时进行加密。在代码中有很多方法。
https://msdn.microsoft.com/en-us/library/system.configuration.rsaprotectedconfigurationprovider.aspx