views:

39

answers:

1

Hi Guys, I am just trying to test this.

And here is my command line:

aspnet_regiis.exe -pdf "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.

A: 

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!

Michael Howard-MSFT