2012-11-28 17 views
1

可能重複:
unrecognized attribute ‘targetframework’SocialAuth.NET不工作

我試圖使用SocialAuth.NET從Gmail和雅虎聯繫人提取物爲我的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

任何幫助嗎?

回答

0

對不起你們,我意識到我錯了。問題是我沒有改變IIS..If的asp.net的版本相同的問題任何一個遭受經過以下幾個步驟

步驟1中運行 - > INETMGR 第2步。爲您的目錄創建一個虛擬文件夾(http://code.google.com/p/socialauth-net/wiki/Quickstart_Guide) 第3步。右鍵單擊您的虛擬目錄,然後單擊屬性並選擇asp.net選項卡並將版本更改爲4.0