I use this configuration for my .NET configuration file and it works fine:
aspnet_regiis -pe "connectionStrings" -app "/SampleApplication"
For this to work, although I should have a virtual directory named SampleApplication pointing to the folder where my web.config file is located.
Is there a way to specify the path to the file and not have a virtual directory?
I tried using
aspnet_regiis -pe "connectionStrings" -location "c:\FoldercontainingWebConfigFile"
but I get the error: "the path attribute must be a relative virtual path." And it cannot contain any ":" "\", etc.
I look here:
http://msdn.microsoft.com/en-us/library/k6h9cz8h%28v=vs.80%29.aspx
Is there any way to do this?
source
share