Reputation: 3934
Based off of this page, I did the following:
I'm guessing I did something wrong in my attempt to call the Web.config file down through my C: directory?
I then read through to the part of Step 3.4 and also tried the -pef by using aspnet_regiis -pef "connectionStrings" C:FirstName-Projects/ProjName-TEST prov "DataProtectionConfigurationProvider" which resulted in a full listing of all registration options I can provide.
Can anyone provide me some input on what to use based on the Web.config file being in C:/FirstName-Projects/ProjName-TEST/SolutionName/Web.config?
Upvotes: 4
Views: 6253
Reputation: 9
Few things to keep in mind.
In my case, the path ended with a blank space. After removing the blank space, the error disappeared.
Upvotes: 0
Reputation: 190
Please use the below syntax for encrypting the physical file.
aspnet_regiis -pef "connectionStrings" "C:/FirstName-Projects/ProjName-TEST/SolutionName"
Ensure you run the command editor as administrator
Note: The app means the IIS virtual path in command you mentioned
Upvotes: 7