Trying to encrypt my connectionstrings.
My site uses Integrated Authentication (Active Directory)- not that it matters, but the STUPID Aspnet_regiis.exe program can't seem to accept a FILENAME, as a parameter, it needs either the IIS ID (i.e. "3") or the APPLICATION NAME, which doesn't seem to exist unless you add ASPNET Forms Authentication to your site.
How do I set the APPLICATION NAME on my web site?
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Aspnet_regiis.exe -pe "connectionStrings" -app "/EncryptTest"
This gives...
P:\WebSites\encrypt>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Aspnet_regiis.exe -pe "connectionStrings" -app "/EncryptTest" Microsoft (R) ASP.NET RegIIS version 4.0.30319.18408 Administration utility to install and uninstall ASP.NET on the local machine. Copyright (C) Microsoft Corporation. All rights reserved. Encrypting configuration section... A configuration file cannot be created for the requested Configuration object. Failed!
Why, oh GOD why can't it be easy, like aspnet_regiis.exe P:\websites\EncryptTest\web.config -pe "connectionStrings"?
Because my IIS on my local machine has a ID of 3, and the DEV box has another, and the QA box has another, and Production... well you get the idea. Without Forms Authentication, how do I set the Application Name?