创建 SinaSectionGroup/SinaSection 的配置节处理程序时出错: 未能加载文件或程序集“System”或它的某一个依赖项。系统找不到指定的文件。 (E:\项目\高校专题活动\gaoxiao\gao\gaoxiao专题\web.config line 12)

解决方案 »

  1.   

    <configSections>
    <sectionGroup name="SinaSectionGroup">
    <section name="SinaSection" type="System.Configuration.NameValueSectionHandler,System"/>
    </sectionGroup>

    </configSections>
    <SinaSectionGroup>
    <SinaSection>
    <add key="AppKey" value="2329211909"/>
    <add key="AppSecret" value="10cb6d2af13a6665cb8c991955001c5b"/>
    <add key="CallBackURI" value="http://localhost/OAuthWeb/SinacallBack.aspx?Type=Sina"/>
    <add key="RequestType" value="GET"/>
    </SinaSection>
    </SinaSectionGroup>
    不知道那块有问题
      

  2.   

    你没有添加NameValueSectionHandler.dll引用,System.Configuration.NameValueSectionHandler需要继承IConfigurationSectionHandler的,