Skip to main content
added 119 characters in body
Source Link
Andrew J. Brehm
  • 1.6k
  • 9
  • 38
  • 58

When I configure IIS to run a Web site on Port 1414, I get the following error:

--------------------------- Internet Information Services (IIS) Manager
--------------------------- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

However, as according to netstat the port is not in use.

Completely aside from IIS, I wrote a test program (just to open the port and test it):

TcpListener tcpListener;
tcpListener = new TcpListener(IPAddress.Any, port);
try
{
     tcpListener.Start();
     Console.WriteLine("Press \"q\" key to quit.");
     ConsoleKeyInfo key;
     do
     {
          key = Console.ReadKey();
     } while (key.KeyChar != 'q');
 }
 catch (Exception ex)
 {
     Console.WriteLine(ex.Message);
 }
 tcpListener.Stop();

The result was an exception and the following ex.Message:

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

The port was available but its "access permissions" are not allowing me access. This remains after several restarts.

The port is not reserved or in use as far as I know and while IIS says it is in use, netstat and my test program say it is not and my test program receives the error that I am not allowed to access the port. The test program ran elevated. The IIS Site is running MQSeries, but the MQ listener also cannot start on port 1414 because of this issue. A quick search of my registry found nothing interesting for port 1414.

What are socket access permissions and how can I correct mine to allow access?

Update: Output of netstat for port 1414.

C:\Windows\system32>netstat -ban|findstr 1414

C:\Windows\system32>

When I configure IIS to run a Web site on Port 1414, I get the following error:

--------------------------- Internet Information Services (IIS) Manager
--------------------------- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

However, as according to netstat the port is not in use.

Completely aside from IIS, I wrote a test program (just to open the port and test it):

TcpListener tcpListener;
tcpListener = new TcpListener(IPAddress.Any, port);
try
{
     tcpListener.Start();
     Console.WriteLine("Press \"q\" key to quit.");
     ConsoleKeyInfo key;
     do
     {
          key = Console.ReadKey();
     } while (key.KeyChar != 'q');
 }
 catch (Exception ex)
 {
     Console.WriteLine(ex.Message);
 }
 tcpListener.Stop();

The result was an exception and the following ex.Message:

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

The port was available but its "access permissions" are not allowing me access. This remains after several restarts.

The port is not reserved or in use as far as I know and while IIS says it is in use, netstat and my test program say it is not and my test program receives the error that I am not allowed to access the port. The test program ran elevated. The IIS Site is running MQSeries, but the MQ listener also cannot start on port 1414 because of this issue. A quick search of my registry found nothing interesting for port 1414.

What are socket access permissions and how can I correct mine to allow access?

When I configure IIS to run a Web site on Port 1414, I get the following error:

--------------------------- Internet Information Services (IIS) Manager
--------------------------- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

However, as according to netstat the port is not in use.

Completely aside from IIS, I wrote a test program (just to open the port and test it):

TcpListener tcpListener;
tcpListener = new TcpListener(IPAddress.Any, port);
try
{
     tcpListener.Start();
     Console.WriteLine("Press \"q\" key to quit.");
     ConsoleKeyInfo key;
     do
     {
          key = Console.ReadKey();
     } while (key.KeyChar != 'q');
 }
 catch (Exception ex)
 {
     Console.WriteLine(ex.Message);
 }
 tcpListener.Stop();

The result was an exception and the following ex.Message:

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

The port was available but its "access permissions" are not allowing me access. This remains after several restarts.

The port is not reserved or in use as far as I know and while IIS says it is in use, netstat and my test program say it is not and my test program receives the error that I am not allowed to access the port. The test program ran elevated. The IIS Site is running MQSeries, but the MQ listener also cannot start on port 1414 because of this issue. A quick search of my registry found nothing interesting for port 1414.

What are socket access permissions and how can I correct mine to allow access?

Update: Output of netstat for port 1414.

C:\Windows\system32>netstat -ban|findstr 1414

C:\Windows\system32>

Explained how MQ relates to this.
Source Link
Andrew J. Brehm
  • 1.6k
  • 9
  • 38
  • 58

When I configure IIS to run a Web site on Port 1414, I get the following error:

--------------------------- Internet Information Services (IIS) Manager
--------------------------- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

However, as according to netstat the port is not in use.

Completely aside from IIS, I wrote a test program (just to open the port and test it):

TcpListener tcpListener;
tcpListener = new TcpListener(IPAddress.Any, port);
try
{
     tcpListener.Start();
     Console.WriteLine("Press \"q\" key to quit.");
     ConsoleKeyInfo key;
     do
     {
          key = Console.ReadKey();
     } while (key.KeyChar != 'q');
 }
 catch (Exception ex)
 {
     Console.WriteLine(ex.Message);
 }
 tcpListener.Stop();

The result was an exception and the following ex.Message:

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

The port was available but its "access permissions" are not allowing me access. This remains after several restarts.

The port is not reserved or in use as far as I know and while IIS says it is in use, netstat and my test program say it is not and my test program receives the error that I am not allowed to access the port. The test program ran elevated. The IIS Site is running MQSeries, but I don't believe that is relatedthe MQ listener also cannot start on port 1414 because of this issue. A quick search of my registry found nothing interesting for Portport 1414.

What are socket access permissions and how can I correct mine to allow access?

When I configure IIS to run a Web site on Port 1414, I get the following error:

--------------------------- Internet Information Services (IIS) Manager
--------------------------- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

However, as according to netstat the port is not in use.

Completely aside from IIS, I wrote a test program (just to open the port and test it):

TcpListener tcpListener;
tcpListener = new TcpListener(IPAddress.Any, port);
try
{
     tcpListener.Start();
     Console.WriteLine("Press \"q\" key to quit.");
     ConsoleKeyInfo key;
     do
     {
          key = Console.ReadKey();
     } while (key.KeyChar != 'q');
 }
 catch (Exception ex)
 {
     Console.WriteLine(ex.Message);
 }
 tcpListener.Stop();

The result was an exception and the following ex.Message:

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

The port was available but its "access permissions" are not allowing me access. This remains after several restarts.

The port is not reserved or in use as far as I know and while IIS says it is in use, netstat and my test program say it is not and my test program receives the error that I am not allowed to access the port. The test program ran elevated. The IIS Site is running MQSeries, but I don't believe that is related. A quick search of my registry found nothing interesting for Port 1414.

What are socket access permissions and how can I correct mine to allow access?

When I configure IIS to run a Web site on Port 1414, I get the following error:

--------------------------- Internet Information Services (IIS) Manager
--------------------------- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

However, as according to netstat the port is not in use.

Completely aside from IIS, I wrote a test program (just to open the port and test it):

TcpListener tcpListener;
tcpListener = new TcpListener(IPAddress.Any, port);
try
{
     tcpListener.Start();
     Console.WriteLine("Press \"q\" key to quit.");
     ConsoleKeyInfo key;
     do
     {
          key = Console.ReadKey();
     } while (key.KeyChar != 'q');
 }
 catch (Exception ex)
 {
     Console.WriteLine(ex.Message);
 }
 tcpListener.Stop();

The result was an exception and the following ex.Message:

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

The port was available but its "access permissions" are not allowing me access. This remains after several restarts.

The port is not reserved or in use as far as I know and while IIS says it is in use, netstat and my test program say it is not and my test program receives the error that I am not allowed to access the port. The test program ran elevated. The IIS Site is running MQSeries, but the MQ listener also cannot start on port 1414 because of this issue. A quick search of my registry found nothing interesting for port 1414.

What are socket access permissions and how can I correct mine to allow access?

Cleanup
Source Link
Chris S
  • 78.5k
  • 12
  • 131
  • 226

TCP Configure IIS Web Site for alternate Port "Permissions"?and receive Access Permission error

I am trying to open a port which is not in use according to netstat.

When I configure IIS to run a Web site on the portPort 1414, I get the following error:

--------------------------- Internet Information Services (IIS) Manager 
--------------------------- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

However, as according to netstatnetstat the port is not in use.

Completely aside from IIS, I wrote a test program.

I tested (just to open the port and test it with some code like this):

                TcpListener tcpListener;
            tcpListener = new TcpListener(IPAddress.Any, port);
            try
            {
                tcpListener.Start();
                Console.WriteLine("Press \"q\" key to quit.");
                ConsoleKeyInfo key;
                do
                {
                    key = Console.ReadKey();
                } while (key.KeyChar != 'q');
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            tcpListener.Stop();

The result was thean exception and the following ex.Message:

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

The port was available but its "access permissions" are wrongnot allowing me access. This remains after several restarts.

The port is not reserved or in use as far as I know and while IIS says it is in use, netstat and my test program say it is not and my test program receives the error that I am not allowed to access the port.

  The test program ran elevated.

Any ideas? What am The IIS Site is running MQSeries, but I overlooking?don't believe that is related. A quick search of my registry found nothing interesting for Port 1414.

What are socket access permissions?? and how can I correct mine to allow access?

TCP Port "Permissions"?

I am trying to open a port which is not in use according to netstat.

When I configure IIS to run a Web site on the port, I get the following error:

--------------------------- Internet Information Services (IIS) Manager --------------------------- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

However, as according to netstat the port is not in use, I wrote a test program.

I tested it with some code like this:

                TcpListener tcpListener;
            tcpListener = new TcpListener(IPAddress.Any, port);
            try
            {
                tcpListener.Start();
                Console.WriteLine("Press \"q\" key to quit.");
                ConsoleKeyInfo key;
                do
                {
                    key = Console.ReadKey();
                } while (key.KeyChar != 'q');
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            tcpListener.Stop();

The result was the exception and the following ex.Message:

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

The port was available but its "access permissions" are wrong. This remains after several restarts.

The port is not reserved or in use as far as I know and while IIS says it is in use, netstat and my test program say it is not and my test program receives the error that I am not allowed to access the port.

  The test program ran elevated.

Any ideas? What am I overlooking?

What are socket access permissions???

Configure IIS Web Site for alternate Port and receive Access Permission error

When I configure IIS to run a Web site on Port 1414, I get the following error:

--------------------------- Internet Information Services (IIS) Manager 
--------------------------- The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

However, as according to netstat the port is not in use.

Completely aside from IIS, I wrote a test program (just to open the port and test it):

TcpListener tcpListener;
tcpListener = new TcpListener(IPAddress.Any, port);
try
{
     tcpListener.Start();
     Console.WriteLine("Press \"q\" key to quit.");
     ConsoleKeyInfo key;
     do
     {
          key = Console.ReadKey();
     } while (key.KeyChar != 'q');
 }
 catch (Exception ex)
 {
     Console.WriteLine(ex.Message);
 }
 tcpListener.Stop();

The result was an exception and the following ex.Message:

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

The port was available but its "access permissions" are not allowing me access. This remains after several restarts.

The port is not reserved or in use as far as I know and while IIS says it is in use, netstat and my test program say it is not and my test program receives the error that I am not allowed to access the port. The test program ran elevated. The IIS Site is running MQSeries, but I don't believe that is related. A quick search of my registry found nothing interesting for Port 1414.

What are socket access permissions and how can I correct mine to allow access?

Post Reopened by Chris S
Migration Rejected
Post Unlocked by CommunityBot
Post Locked by CommunityBot
Post Migrated Away to stackoverflow.com by TheCompWiz, mdpc, Brent Pabst, Scott Pack, sysadmin1138
Post Closed as "off topic" by TheCompWiz, mdpc, Brent Pabst, Scott Pack, sysadmin1138
Source Link
Andrew J. Brehm
  • 1.6k
  • 9
  • 38
  • 58
Loading