【问题标题】:SocialAuth.NET is not working [duplicate]SocialAuth.NET 不工作 [重复]
【发布时间】:2012-11-15 21:40:21
【问题描述】:

可能重复:
unrecognized attribute ‘targetframework’

我正在尝试使用 SocialAuth.NET 从 gmail 和 yahoo 为我的 Web 应用程序提取联系人,但是当我运行 WebformDemo 时出现以下错误

“/Demo”应用程序中的服务器错误。

配置错误

描述:处理一个错误 服务此请求所需的配置文件。请查看 下面的具体错误详细信息并修改您的配置文件 适当地。

解析器错误消息:无法识别的属性“targetFramework”。笔记 属性名称区分大小写。

Source Error: 
Line 76:     </authentication>-->
Line 77:     <!--<authentication mode="None"/>-->
Line 78:     <compilation debug="true" targetFramework="4.0">
Line 79:       <assemblies>
Line 80:         <add assembly="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Source File: D:\test\SocialAuth-net-2.3\WebFormsDemo\web.config   
Line: 78 

Version Information: Microsoft .NET Framework Version:2.0.50727.3053;
ASP.NET Version:2.0.50727.3053

我使用的是 Windows XP 和 Visual Studio 2010。

有什么帮助吗?

【问题讨论】:

    标签: c# asp.net asp.net-mvc socialauth


    【解决方案1】:

    对不起,我意识到我的错误。问题是我没有更改 IIS 中的 asp.net 版本。如果有人遇到同样的问题,请按照以下步骤操作

    步骤 1. 运行-> inetmgr 步骤 2.为您的目录创建一个虚拟文件夹 (http://code.google.com/p/socialauth-net/wiki/Quickstart_Guide) 步骤 3. 右键单击​​您的虚拟目录,然后单击属性并选择 asp.net 选项卡并将版本更改为 4.0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-25
      • 2015-04-21
      • 2017-12-12
      • 2018-03-29
      • 2015-01-20
      • 2014-09-14
      • 1970-01-01
      • 2015-05-01
      相关资源
      最近更新 更多