本文介绍了C#Web.config文件提供未知问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<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>





这是我的Web.config文件的一部分。



我有另一个应用程序,我复制了代码,它完美地工作在另一个应用程序,但我一直得到一个'错误52无法识别的配置部分身份验证。'



请帮助我一些人,我有google'd和什么人们给的是完全相同的东西。



我不知道为什么这样做。



谢谢



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

推荐答案


这篇关于C#Web.config文件提供未知问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 07:37