开发者

While decrypting the web.config get an error

I am just trying to test this.

And here is my command line:

aspnet_regiis.exe -pdf 开发者_C百科"connectionStrings" c:\web.config

And this is the error I got. Error – "The configuration for physical path ‘C:\Web.Config’ cannot be opened.

And the permissions of that file is not read only.

Can anyone please suggest.


This is a very old post but I was searching for it myself today and found that if you omit the file name it will pickup Web.config in the directory you specify:

aspnet_regiis -pdf "connectionStrings" c:\temp

If you add a trailing \ or the full name c:\temp\Web.config it will still fail.

Also, the c:\ may have been an administrator privilege issue reading and writing to the root.

Cheers


You should keep web.config in a folder close the application code. The root folder (c:) is an admin-only folder and shouldn't be used for anything!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜