I'm trying to build a small fb application using asp.net mvc 2, and facebook C# .net From some reason, the code from the sample application doesn't seem to work for me. Here's the exception I am receiving from my web.config file.
Unrecognized attribute 'apiKey'. Note that attribute names are case-sensitive.
Source Error:
<facebookSettings
apiKey="XXXX"
apiSecret="XXXX"
appId="XXXX" />
I've set this as part of the followin开发者_StackOverflow社区g configuration:
<configSections>
<section name="facebookSettings" type="Facebook.FacebookConfigurationSection"/>
</configSections>
<facebookSettings
apiKey="XXXX"
apiSecret="XXXX"
appId="XXXX"
/>
Any ideas?
apiKey
does not exist in FacebookConfigurationSection
from changeset 'b6900dde15d7' which is made by ntotten on 12/07/2010 08:11 AM.
Download / install last Facebook C# SDK and take a look at last samples.
Here is FacebookConfigurationSection source code. You will see that apiKey is not there any more.
Where in the web.config do you have this configuration? According to the error it doesn't recognize the attribute apiKey
which means can't read it. What else is there to say? I think the error message is pretty clear.
精彩评论