Thursday 23 February 2012

IIS - How to Fix Error Error - "The configuration for physical path 'C:\inetpub\wwwwroot\test\TestinggWebConfig' cannot be opened.

Error - "The configuration for physical path 'C:\inetpub\wwwwroot\test\TestinggWebConfig' cannot be opened.
I was getting this error message while trying to execute the following command:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -pef "connectionStrings" C:\inetpub\wwwwroot\test\TestingWebConfig -prov "RsaProtectedConfigurationProvider"

The problem was here:
C:\inetpub\wwwwroot\test\TestingWebConfig
should be:
C:\Inetpub\wwwroot\Test\TestingWebConfig

So message is quite descriptive - cannot open file because it simply doesn't exist!!

No comments:

Post a Comment