port = Convert.ToInt32(ConfigurationManager.AppSettings["port"].ToString());
<add key="port" value="8080"/>