I am trying to start up a web app with visual studio, and I keep getting the error:
The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020).
I did some digging and i found that port 80 was used by the actual System proccess(lol) so i changed the default web site port from IIs manager to something that is not used by anything. I am still getting the error though.
One thing to note is that I can fire up a new website project but not a web application.
Windows 10.
Thanks
some application (check Skype connection port setting) can block ports
or use console:
netstat -aon | find «:80»
netstat -aon | find «:443»
Related
I work on aspnet core web api project. I will publish this project to remote server. When Kestrel is running, default port is 5000 or anythink like this.
I want to change this port to 80 or 8080. Can I do that?
When I try to change from launchSettings, I get this error:
System.IO.IOException: 'Failed to bind to address http://localhost:80.'
Your problem may be because you already have another web server running on your system (e.g. IIS) that is already binding to port 80.
You can check with this powershell command:
Get-Process -Id (Get-NetTCPConnection -LocalPort 80).OwningProcess
This command will show you what process is listening on port 80. If nothing is listening, it will return an error.
I've looked up several articles/sources but none of them helped me out.
I have this bizarre issue where i can only connect to my SignalR Server (Self-Hosted, same computer) if the Server itself is configured to run on http://127.0.0.1:8765 and the Client is pointed to that same address. However, if i change the Server to run on any IP such as http://*:8765 and the Client is pointed it to my IP or computername, say: http://192.168.0.1:8765 or http://MyLocalPC:8765, the client throws an Exception after await _hubConnection.Start() with message: No connection could be made because the target machine actively refused it 192.168.0.1:8765.
i have tried below steps to experiment a little but none of them actually helped:
changed the port from :8765 to any port i can think of (that is obviously not occupied), didn't work.
changed from one Network to another, didn't help.
disabled firewall on both Server and Client computer, nope.
tried to run the Client on another computer, same error message.
to show a snippet of the code, see below:
Server (_signalR is an IDisposable object & _serverURI is where http://____:__ is specified):
Client (_hubConnection & _hostAddress is self-explanatory):
i am using C# 7.0 with Microsoft.AspNet.SignalR.Client 2.4.1.0 and Microsoft.AspNet.SignalR.Core 2.4.1.0
i just realized that its because Visual Studio wasn't running with Administrator rights. SignalR required administrative rights to able to run its Server on IPs other than localhost or 127.0.0.1. I wasn't able to fully realize it since i switch laptops about 3 weeks now and forgot setting up running Visual Studio in Administrator Mode.
The reason i was also not able to find any error regarding that is for some reason there's a flaw in my code where i suppressed the exception error and still displayed a message as if it was working properly.
I'm try to use t32apinet.dll on host V (Win7 embedded 32bit) to connect with host W (Win 7 64bit).
TRACE32 on host W is already configured in config.t32 to accept a connection:
; Remote Control Access
RCL=NETASSIST
PORT=20000
PACKLEN=1024
TRACE32 is running on W while I try to config the driver and to establish the connection from V as follows:
T32 = new T32API();
T32.Config("NODE=", "192.168.100.2");//all Config returns 0 (no errors)
T32.Config("PACKLEN=", "1024");
T32.Config("PORT=", "20000");
T32.Init();//returns -1
//T32.Attach((int) T32API.Device.ICD);
On W I see incoming packages on port 20000 when Init() is executed on V.
Any ideas why Init() return with error?
Additional info regarding comments bellow:
I'm using T32Start-Tool to start Trace32, where using of API Port is activated and port value: 20000 is set
calling t32remtest.exe 192.168.100.2 port=20000 on remote PC returns:
error initializing TRACE32
error initializing TRACE32
The minimum viable settings block for enabling the Remote API port of TRACE32 in your configuration file is:
RCL=NETASSIST
PORT=20000
Please make sure to include an empty line before and after the block and that the correct TRACE32 configuration file is selected during start-up.
If you are using the T32Start utility to start TRACE32, the configuration file gets dynamically generated and is not necessarily identical with the default one config.t32.
although I saw the incoming packages in the sniffer there was no reactions from TRACE32.
The problem was that Windows recognized that network as public and blocked packages on the application level. Due to specific local IT policies the solution for me is to create a rule in windows firewall to explicitly allow communication on UDP port 20000:
screen with settings for new inbound rule in Win firewall
This has been really painful for the last few hours and I just have no more ideas what to do.
Tried many solutions that I found on here without any luck...
I have an iis server that is hosting a wcf web service. Simple stuff.
I can connect to this (example: http://mydomain.com/Service.svc?wsdl) from the iis server and all other computers without any problems.
So I went on to make a php client on my computer - (using xampp via localhost) - (not on the iis server)
$wcfClient = new SoapClient('http://mydomain.com/Service.svc?wsdl');
$args = //input data
$response = $wcfClient->GetData($args);
print_r($response->GetDataResult->Post);
This works perfect. No problems at all. It returns all the data... Then I went on to upload this to my hosting account. This is the error I keep getting.
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from ....
I have no more ideas. Disabled firewall, changed web.config a million times and still no luck. I tried the file_get_contents method to see what's up. I keep getting:
failed to open stream: Connection refused
I just fixed this by changing the port to 80 on the iis server...
Ok, so I'm learning about ASP.NET by making a simple program to read in a user's gmail credentials and construct an email from their input into the Console, but I'm getting a new error that I was not get yesterday, and I have not changed ANY code. The error is on line 41, so I have provided that (the rest of the code is just reading input into Strings) I have disabled my firewall to no avail, and have also tried "http://localhost/Service.asmx", which doesn't work either. I've also tried restarting IIS.
I'm completely new to this subject, but the error suggests, to me, that the program is communicating with the server but is being denied by a blocked port, but I have disabled my firewall and the error persists. Any ideas? Thanks in advance!
/*40*/ Communication_Service.Service CommServiceProxy = new Communication_Service.Service();
/*41*/ Result = CommServiceProxy.SendMail(GmailAccount, Password, To, Subject, Body);
There was an error dowloading http://localhost:4932/Service.asmx. Unable to connect to the remove server. No connection could be made because the target machine actively refused it 127.0.0.1:4492
Sounds like you are running cassini (development server). The application at http://localhost:4932/ needs to be started. You probably have multiple sites and need multiple start up projects. Right click your solution and click set start up project, pick multiple, and select all your websites. On VS goto debug, run without debugging and they should all start.