c# - An attempt was made to access a socket in a way forbidden by its access permissions -


i downloaded c# sdk , asp.net mvc sample, modified work 4.2.1. (web config facebooksettings parameters etc.), created facebook application , tried run it. click facebook login button - ok, entering credentials facebook popup - ok, allowing access application - ok, , error:

system.net.sockets.socketexception: attempt made access socket in way forbidden access permissions 66.220.146.47:443

var app = new facebookapp(); if (app.session == null) {    // user isnt logged in facebook    // send them home page    return redirecttoaction("index"); }  // user info graph api dynamic me = app.api("/me"); // exception thrown here viewdata["firstname"] = me.first_name; viewdata["lastname"] = me.last_name; 

tje app object ok think (containing settings params, session object access token , facebook userid, etc.)

i using local development address http://myappdev.local (set 127.0.0.1 in hosts file). same address set in facebook app settings, domain myappdev.local - can problem? have seen examples using localhost:1234 in tutorials.

solved... bad - firewall "silently" blocking iss worker process connecting on port 443... hope @ least save same mistake :)


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -