Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
XML
<system.web>
    <compilation debug="true" targetFramework="4.5"/>
    <pages controlRenderingCompatibilityVersion="4.5" clientIDMode="AutoID"/>
    <authentication mode="Forms">
      <forms loginUrl="login.aspx" name=".EMSAUTH" protection="All">
      </forms>
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>
  </system.web>
  <location path="Client.aspx">
        <system.web>
        <authorization>
            <allow users="*"  />
        </authorization>
        </system.web>
        </location>


This is part of my Web.config file.

I have another app that I copied the code from and it works perfectly on the other app, but I keep getting a 'Error 52 Unrecognized configuration section authentication.'

Please could some one help me here, I have google'd and what people gave was the exact same thing.

I do not know why it is doing this.

Thanks
Posted

1 solution

Seems like this web.config is not XML compliant. Save this web.config as test.xml and load it in IE and check what is the error. Hopefully this should resolve your issue.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900