通过命令行解密连接字符串给出错误 [英] Decrypt connection string through command line is giving error

查看:66
本文介绍了通过命令行解密连接字符串给出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在web.config中加密了连接字符串,我需要从命令行解密它。



i在命令提示符中给出了以下命令



aspnet_regiis -pdfconnectionstringsc:\ temp\web.config



但是我收到这个错误物理路径的配置''c:\ temp \web.config''不能是opnend?失败了



如果我按照正确的语法或不解密请告诉我



谢谢,

Priya。

Hi All,

I have encrypted connection string in web.config and i need to decrypt it from the command line.

i gave the below command in the commandprompt

aspnet_regiis -pdf "connectionstrings" c:\temp\web.config

but i am getting this error " the configuration for the physical path ''c:\temp\web.config'' cannot be opnend?failed"

Please let me know if i am following the correct syntax or not to decrypt

Thanks,
Priya.

推荐答案

您使用的语法错误。请参阅此文章: http://chiragrdarji.wordpress.com / 2008/08/11 / how-to-encrypt-connection-string-in-webconfig / [ ^ ]

由于你有一个基于IIS的应用程序,你需要

aspnet_regiis.exe -pdconnectionStrings-app/ DemoApplication

语法。
You are using wrong syntax. Consult this article: http://chiragrdarji.wordpress.com/2008/08/11/how-to-encrypt-connection-string-in-webconfig/[^]
As you have an IIS based application, you need the
aspnet_regiis.exe -pd "connectionStrings" -app "/DemoApplication"
syntax.


这篇关于通过命令行解密连接字符串给出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆