C#Web.config文件提供未知问题 [英] C# Web.config file giving unknown issues

查看:54
本文介绍了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

推荐答案

看起来像这样web.config不符合XML。将此web.config保存为test.xml并将其加载到IE中并检查错误是什么。希望这可以解决您的问题。



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


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆