title: Remoting configuration failed with the exception: An attempt was made to access a socket in a way forbidden by its access permissions
body: <p>I have added Dot net remoting support in my code (following code and App.config which conatains remoting configuration)</p>
  
  <p>.
  .
  .</p>
  
  <pre><code>  RemotingConfiguration.Configure("App.Config", false);
  </code></pre>
  
  <p>.
  .
  .
  App.config</p>
  
  <pre><code>    &lt;!-- This channel uses GTCP from Genuine Channel, client application must use this channel access. /!--&gt;
      &lt;channel type="Belikov.GenuineChannels.GenuineTcp.GenuineTcpChannel, GenuineChannels" MaxTimeSpanToReconnect="240000" ReconnectionTries="0" port="8080"&gt;
  </code></pre>
  
  <p>.
  .
  .
  
  .
  .</p>
  
  <p>I am seeing exception </p>
  
  <blockquote>
    <p>Remoting configuration failed with the exception
    'System.Reflection.TargetInvocationException: Exception has been
    thrown by the target of an invocation. --->
    System.Net.Sockets.SocketException: An attempt was made to access a
    socket in a way forbidden by its access permissions</p>
    
    <p>at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot,
    SocketAddress socketAddress)</p>
    
    <p>at System.Net.Sockets.Socket.Bind(EndPoint localEP)</p>
    
    <p>at
    Belikov.GenuineChannels.GenuineTcp.TcpConnectionManager.StartListening(Object
    endPointAsObject)</p>
    
    <p>at
    Belikov.GenuineChannels.GenuineTcp.GenuineTcpChannel.StartListening(Object
    data)</p>
    
    <p>at
    Belikov.GenuineChannels.GenuineTcp.GenuineTcpChannel..ctor(IDictionary
    properties, IClientChannelSinkProvider iClientChannelSinkProvider,
    IServerChannelSinkProvider iServerChannelSinkProvider)</p>
    
    <p>--- End of inner exception stack trace ---</p>
    
    <p>at System.RuntimeMethodHandle._InvokeConstructor(Object[] args,
    SignatureStruct&amp; signature, IntPtr declaringType)</p>
    
    <p>at System.RuntimeMethodHandle.InvokeConstructor(Object[] args,
    SignatureStruct signature, RuntimeTypeHandle declaringType)</p>
    
    <p>at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
    invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)</p>
    
    <p>at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
    Binder binder, Object[] args, CultureInfo culture, Object[]
    activationAttributes)</p>
    
    <p>at System.Activator.CreateInstance(Type type, BindingFlags
    bindingAttr, Binder binder, Object[] args, CultureInfo culture,
    Object[] activationAttributes)</p>
    
    <p>at
    System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry
    entry)</p>
    
    <p>at
    System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData
    configData, Boolean ensureSecurity)</p>
    
    <p>at
    System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData
    configData, Boolean ensureSecurity)'.</p>
  </blockquote>
  
  <p>I am bit confused as it was using fine earlier, same code giving me an error. </p>
  
  <p>can anybody help me to figure out whats going wrong here.</p>