I am trying to extend my sharepoint 2013 web application to Extranet zone
Get-SPWebApplication http://myServer-01:1111/ | New-SPWebApplicationExtension -Name "ExtendTemp" -SecureSocketsLayer -Zone "Extranet" -URL "https://extranet.1111.com"
It takes a very long time and I get this error message:
New-SPWebApplicationExtension : The web configuration file, C:\inetpub\wwwroot\wss\VirtualDirectories\1111\web.config, does not have element "authentication" or it is invalid.
But when I check in Central admin, I am able to see the extended web app.
The actual problem I am facing is this. In short, my properly working web app is corrupted now for some unknown reasons(There wasn't any patch update either). The solution given in the mentioned page is to extend the and remove the extension.
Though I am able to see the extended site in the central admin, the main issue is not resolved yet (Even after reboot).
So I am stuck in the first step only(Extension of web app). Any ideas?