I am just starting working with ASP.NET Core 2.0 on a Windows machine. I cannot run kestrel server due to the port 5000 being used by some other apps.
Exception has occurred: CLR/System.IO.IOException An unhandled exception of
type 'System.IO.IOException' occurred in System.Private.CoreLib.dll: 'Failed to
bind to address http://127.0.0.1:5000: address already in use.'
The issue is that I kill the process and run the dotnet run command. It works but for the second time I get the error again. So somehow I should the port should be released when I stop debugging but it doesn't. Any tips?
I have faced the same. Here is the solution please refer to this:-
https://github.com/dotnet/core/issues/3110
change your port in the program.cs and launch setting.json file.
eg - : webBuilder.UseUrls("http://localhost:6980");
I had the same problem, and based on the karnveer0098 answer, I just changed the line "applicationUrl": "http://localhost:60758" inside of 'launchSettings.json', to another port number, then all came back to normal.
Related
I am following the instructions from here : http://jpos.org/blog/2013/07/setting-up-the-client-simulator/ to set up the client and server simulator. I am able to start one of them on my machine. If i start the server after the client is run, it throws this error :
"An instance of Q2 is already running. Shutting this instance"
I know its kind of self explanatory. But was wondering if there is a way to run both server and client simulators on the same machine.
Check your src/dist/deploy directory and remove the file 01_multi_instance_prevention.xml. That descriptor wasn't present in jPOS by the time the blog post was written and was installed when you calledinstallResources` as it's now part of the jPOS jar. We'll consider making that file optional.
I have a .NET 4 webservice running on IIS Express 7.5 on a 2008 Server
the service runs fine for a couple of hours or even a day but after some time the process crashes with an error message failed to translate IP address + Hostname to Site Id which is displayed red in the console output.
I streamlined the applicationhost.config to only contain a single site and the binding is only to an ip address and localhost but no success.
I use this command line to start IISExpress
iisexpress.exe /config:c:\myconfig\applicationhost.config /site:mysite
First of all a solution for the error would be great but any information on how to optain more data for this error would also help. I already checked the eventlog but can't find anything.
Well, I upgraded to IISExpress 8 which runs stable now.
I did not know what caused this issue, but I belive it was somehow related to heavy load on the server since to often (but not exclusively) happend during a scheduled backup.
In RAD 7 I created a new server profile (using version 6.1) and tried to start this server without any projects added to it, with the intention of making sure the server starts up fine and then adding projects via the Add/Remove projects option. While I have done this many times before I have started getting this problem now:
1) Console says 'Server server1 open for e-business` but the server tab still shows that server is 'Starting...'
2) After several minutes I get the error saying server failed startup failed after 300 seconds.
3) Opening the FFDC log file shows the following exception
------Start of DE processing------ = [9/16/13 16:40:06:745 EDT] , key =
javax.naming.NameNotFoundException
com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info 1133
Exception = javax.naming.NameNotFoundException
Source = com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info
probeid = 1133
Stack Dump = javax.naming.NameNotFoundException: Name "RMIConnector" not found in context "".
at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1095)
at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:991)
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:566)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2226)
at com.ibm.WsnOptimizedNaming._NamingContextImplBase._invoke(_NamingContextImplBase.java:284)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:627)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:480)
at com.ibm.rmi.iiop.ORB.process(ORB.java:512)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2665)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2530)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
4)I also see a server1_exception file with the following line in it
Index Count Time of last Occurrence Exception SourceId ProbeId
------+------+---------------------------+--------------------------
1 1 9/16/13 16:40:06:745 EDT javax.naming.NameNotFoundException
com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info 1133
------+------+---------------------------+--------------------------
I do have other server profiles created for other versions of the workspace but I'm sure none of them are running while I try to run the profile in question. I noticed this started happening when I stopped one profile, then switched to another one and tried to start that up. Since then I haven't been able to start any of the profiles old or new and I keep getting this error/exception. Any help would be appreciated.
This is usually due to connectivity problems between RAD and the application server. The causes of these errors are many different possible:
Change of credentials of the user you are trying to connect with. There should be error messages in your SystemOut.log of the server to support this.
Pure connectivity errors, such as the port configuration being wrong. Check which RMI/SOAP ports you are using by accessing your administrative console directly in a browser and make sure that you have the same ports configured in your RAD configuration. Try both SOAP and RMI and most important, do not trust the automatic settings (I have found them to be wrong in more than one time).
I have a Windows service written using Topshelf. I'm trying to configure it to run using a Windows account with restricted privileges rather than using LocalSystem. That's also necessary as I'd like to connect to a database using integrated authentication.
The service works when run as LocalSystem (albeit with a database connection string containing credentials) and running the console application as my limited account (using runas) also works.
However, when I try to start the service the service control manager times out waiting for a response:
The service did not respond to the start or control request in a timely fashion.
I also get the following in the Application Popup event log:
Application Error : The exception unknown software exception (0xc06d007e) occurred in the application at location 0x77e4bef7.
The first thing that the application does is writes to a log file but it doesn't reach that when I start the service. The logging works if I run via the console.
Any suggestions what I might be missing or what I might try next?
This problem seems to be related to the server (a domain controller) rather than TopShelf. A service built with the .NET service component also exhibits the same behaviour.
The service runs successfully on a different machine (in the same domain).
Unfortunately this doesn't help diagnose the problem but gives me an acceptable workaround.
Check the MSDN article Debugging windows services which describes how you debug windows services.
I've just started seeing this on a few of my services written in .net 2.0. They'll start fine when the server boots, but if I were to restart them throughout the day, they would not start, and give this error message.
They currently ran under a domain account which has admin rights on the box, but for kicks, I switched it to Local System, and the service started normally. I stopped it, changed it back to the domain account (reentering the password), and it started normally again as expected.
Don't know if this counts as a 'fix' so much, but that's what worked for me.
I am getting the following error when i try to run the command from remote machine
C:\>sc \\machinename query
[SC] OpenSCManager FAILED 1722:
The RPC server is unavailable.
I have admin privileges to that machine.
Any solution let me know.
In my case I got this error because I was messed up the name of the server I was targeting. It will give you this error if you accidentally point it at nothing. In my case, the server name was a variable being defined from a text document so it took a while for me to realize.
Also noteworthy: There should actually be two slashes before the machine name (I'm sure it's just a typo, but just in case it could confuse anybody).
The error 1722 is : The RPC server is unavailable.
Verify if RPC service (Remote Procedure Call (RPC)) is running at remote machine with telnet, try at command line:
*>telnet your.server 135
If no errors occurs the RPC server is probably ok, than check system events for issues.
6 years later but anyaway.
Enable File and printer sharing on the remote computer and it will work.
https://support.microsoft.com/en-us/kb/323790
I tested on my localmachine
I tested from another machine on the network
SC is nice..! :)
You need to make sure that the Client DNS service is not stopped. This fixes the problem.