Click here to Skip to main content
16,011,626 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
The application is running fine on localhost but on server it is showing an error.
Server Error in '/facebooksample' Application.
Invalid parameter
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Facebook.Utility.FacebookException: Invalid parameter

Source Error:

[No relevant source lines]

Stack Trace:

[FacebookException: Invalid parameter]
   Facebook.Utility.Utilities.ParseException(String response, Boolean JSONFormat) +254
   Facebook.Rest.RestBase.processResponse(WebResponse webResponse, Boolean useJson) +127
   Facebook.Rest.RestBase.SendRequestSynchronous(IDictionary`2 parameterDictionary, Boolean useSession, Boolean useJson) +341
   Facebook.Rest.RestBase.SendRequest(IDictionary`2 parameterDictionary, Boolean useSession, Boolean useJson) +26
   Facebook.Rest.Auth.GetSession(String auth_token, Boolean isAsync, GetSessionCallback callback, Object state) +153
   Facebook.Session.CanvasSession.LoadFromRequest() +809
   Facebook.Session.CanvasSession.SetupCanvasSession(String appKey, String appSecret, List`1 permissions, Boolean readRequest) +121
   Facebook.Session.FBMLCanvasSession..ctor(String appKey, String appSecret) +13
   Facebook.Web.CanvasFBMLBasePage..ctor() +31

Please help me.
Posted
Updated 1-Apr-11 0:26am
v2
Comments
walterhevedeich 1-Apr-11 6:26am    
Need to see your code where it errored out.

1 solution

Do you have error handling in place? If yes, the best solution would be to check out the logs for error details.
And if you don't, the first place to check is the event log. If you don't find much details there you may check IIS logs and HttpErr log file (IIS 6+). IIS 7 also has failed request tracing for better analysis.
All these methods require access to server on which your code is hosted. But that's the only option if you do not have a good exception handling in your project.

Hope that helps!

Cheers
Ankur
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900