title: Error while extending Web application in sharepoint 2013
body: <p>I am trying to extend my sharepoint 2013 web application to Extranet zone</p>
  
  <pre><code>Get-SPWebApplication http://myServer-01:1111/  | New-SPWebApplicationExtension -Name "ExtendTemp" -SecureSocketsLayer -Zone "Extranet" -URL "https://extranet.1111.com"
  </code></pre>
  
  <p>It takes a very long time and I get this error message:</p>
  
  <blockquote>
    <p>New-SPWebApplicationExtension : The web configuration file,
    C:\inetpub\wwwroot\wss\VirtualDirectories\1111\web.config, does not have
    element "authentication" or it is invalid.</p>
  </blockquote>
  
  <p>But when I check in Central admin, I am able to see the extended web app. </p>
  
  <p>The actual problem I am facing is <a href="http://social.technet.microsoft.com/wiki/contents/articles/32467.sharepoint-2013-sorry-were-having-trouble-reaching-the-server.aspx" rel="nofollow">this</a>. 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. </p>
  
  <p>Though I am able to see the extended site in the central admin, the main issue is not resolved yet (Even after reboot).</p>
  
  <p>So I am stuck in the first step only(Extension of web app). Any ideas? </p>