Error: Requested value 'masculino' was not found.

Feb 9, 2008 at 11:35 AM
Edited Feb 9, 2008 at 1:16 PM
my app is in Spanish and this error is giving me since yesterday, why? there is some patch to fix it?
this's my app http://apps.facebook.com/soyhinchade/
Feb 13, 2008 at 8:29 PM

Ber79 wrote:
my app is in Spanish and this error is giving me since yesterday, why? there is some patch to fix it?
this's my app http://apps.facebook.com/soyhinchade/


I have a similar error:
Error: "Requested value 'Enunarelación' was not found."

This is when I call this:
System.Collections.ObjectModel.Collection<User> userinfo = this.FbService.GetUserInfo(this.FbService.UserId);

My own preferred language is "English" in my Facebook settings. My country, under Profile > Contact is "Spain".

My guess is that the Facebook web service is returning some value in Spanish, whilst the Toolkit DLL is expecting another value. In your case "Male" has changed to "masculino". The stack trace shows:

ArgumentException: Requested value 'Enunarelación' was not found.
System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) +2717319
Facebook.Parser.UserParser.ParseUser(XmlNode node) +1098
Facebook.API.FacebookAPI.GetUserInfo(String userIds) +277
Facebook.Components.FacebookService.GetUserInfo(String userIds) +83
Default.PageLoad(Object sender, EventArgs e) in c:\Documents and Settings\Ben\My Documents\Visual Studio 2005\Projects\CarbonFb\Default.aspx.cs:13
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

My guess is that there isn't an enum for masculino yet in the toolkit. Likewise, I think my error is the same with regards to relationship status.

Let me know if you solve the problem.

Regards

Ben
My application isn't in Spanish, but I live in Spain. I hate Geolocation....
Feb 13, 2008 at 10:22 PM


junto wrote:

Ber79 wrote:
my app is in Spanish and this error is giving me since yesterday, why? there is some patch to fix it?
this's my app http://apps.facebook.com/soyhinchade/


I have a similar error:
Error: "Requested value 'Enunarelación' was not found."

This is when I call this:
System.Collections.ObjectModel.Collection<User> userinfo = this.FbService.GetUserInfo(this.FbService.UserId);

My own preferred language is "English" in my Facebook settings. My country, under Profile > Contact is "Spain".

My guess is that the Facebook web service is returning some value in Spanish, whilst the Toolkit DLL is expecting another value. In your case "Male" has changed to "masculino". The stack trace shows:

ArgumentException: Requested value 'Enunarelación' was not found.
System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) +2717319
Facebook.Parser.UserParser.ParseUser(XmlNode node) +1098
Facebook.API.FacebookAPI.GetUserInfo(String userIds) +277
Facebook.Components.FacebookService.GetUserInfo(String userIds) +83
Default.PageLoad(Object sender, EventArgs e) in c:\Documents and Settings\Ben\My Documents\Visual Studio 2005\Projects\CarbonFb\Default.aspx.cs:13
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

My guess is that there isn't an enum for masculino yet in the toolkit. Likewise, I think my error is the same with regards to relationship status.

Let me know if you solve the problem.

Regards

Ben
My application isn't in Spanish, but I live in Spain. I hate Geolocation....


Notably, when I push the same code onto my live server hosted in the US, the problem goes away, and I get English returned from the Facebook API. I can only assume Facebook is geo-locating the server request, which in my personal opinion is completely daft.

Regards

Ben
Feb 14, 2008 at 10:14 AM
Junto read this post http://weblogs.asp.net/bernardoraskovsky/archive/2008/02/12/parche-en-facebook-developer-toolkit-para-usuarios-de-habla-hispana.aspx in my blog there is a solution.
Feb 14, 2008 at 1:20 PM


Ber79 wrote:
Junto read this post http://weblogs.asp.net/bernardoraskovsky/archive/2008/02/12/parche-en-facebook-developer-toolkit-para-usuarios-de-habla-hispana.aspx in my blog there is a solution.


Hi Bernado,

Thanks for that. I'll take a look this evening. I presume you have changed the enums rather than using a API setting to force the Facebook we service to return English values?

Ideally we would have this.fbService.Culture = "en-US" in the toolkit.

Hwoever, I don't think that the API offers such a feature yet. I find it bizarre that Facebook have taken the route to force servers located in Spanish countries to receive the Spanish language version of the web services. Very strange choice.

Nice work though. Thanks again. Muchas gracias!

Regards

Ben
Feb 23, 2008 at 12:15 PM


Ber79 wrote:
Junto read this post http://weblogs.asp.net/bernardoraskovsky/archive/2008/02/12/parche-en-facebook-developer-toolkit-para-usuarios-de-habla-hispana.aspx in my blog there is a solution.


The bug is now fixed: http://bugs.developers.facebook.com/show_bug.cgi?id=1652
Jan 8, 2010 at 9:57 AM

Hello Friends,

i am developing code for get face book friends. for that i had used following code but it gives me error.

Exception Details: System.ArgumentException: Requested value 'Depends....' was not found.
at line :  f=_fbService.GetFriends();

UserID = _fbService.UserId;
            Facebook.User u=_fbService.GetUserInfo();
            Response.Write("First Name:-" + u.FirstName + "<br> Last Name:- " + u.LastName + "<br>Sex:- " + u.Sex) ;
             
            Collection<Facebook.User> f =new Collection<Facebook.User>();
            f=_fbService.GetFriends();   
            Response.Write("<br> Friends count you have:-" + f.Count);

any body help me?