You're welcome. Now this is where you tell us where the error is, and what you are expecting to happen; that is obviously not happening. Please be clear and descriptive. Dumping a wad of code and expecting us to zip through it is likely not going to happen. So please specifically narrow down the...
That's not what he asked you. He asked you if the 'system' is listening on your local machine to the same ports?
If your API works locally. You need to contact your server provider, and have them trace the problem for you. Until you can prove that there is an issue with C# or your programming...
Start here : Retrieving Data Using a DataReader - ADO.NET
And explain this more :
Why does the database store C# code?
The help you may receive will only be as good as the effort you put into explaining what you're trying to do and why. If we don't understand what your task is, you will...
Read the threading link in my signature. It explains everything you need to know... then read the linked pages also.
Simply to answer your question, no. It's not.
If you don't want to use the thread, then replace this :
Thread RunApp = new Thread(() => RunOptions())...
Declare at class level. If you are in another thread for example and a loop is running based on the above boolean being true, you can set it as false from another thread. This will stop the current loop from running.
Set your boolean to false.
Ideally, I would prefer to run your loop on a new...
By any chance, are you running any applications like PeerBlock?
If your API works on TCP, then download and run this : TCPView for Windows - Windows Sysinternals
Then tell us what the service is that runs on your port when your application starts. Once we know that much, we should be able to...
You're starting at the deep end. That type of application would be geared towards semi-intermediate programmers. Pick an easier task like the hello world app, and start there. You can then work towards expanding it. There are links for getting started in both mine and JM's signatures.
The problem with your code is that it leaves you open to SQL injection attacks and if you ever at a later point decided to move from a local db to a remote db, your database can be exploited.
What you could do is; create your own array of parameters and then once you construct them based off...
That doesn't tell us what application is using the port. So I think its safe to assume something else is probably running on the port if you can't access it. Double check all firewall rules.
Use this in Elevated CMD : tasklist | findstr YOUR EXECUTABLE NAME
Or better : netstat -ano | findStr...
Hi, welcome to the forums.
A good place to start would be a search engine rather than a forum. We will mostly only help when we have seen you to be making an attempt and then we offer guidance based on what you've already tried. But since you haven't tried, there is nothing to help you with...
The above seems Ok, but where are your parameters?
Just because its a local db, that doesn't mean you should slack on security.
Why not remove this and call on a new connection from whatever method needs it?
Here's how I wrote out mine for testing a customer app which had a user registration...
Judging by the OP's code on #3 - It looks like they want to close the window without any possibilities of the user being prompted though, and hence why they are calling kill. We all know there are procedures for closing windows, but for right or wrong, I assume there is a reason why the OP is...
You're close. You can try something like this :
public class Launcher
public void Run_Timer()
Timer timing_Scheduler = new Timer(1000);
timing_Scheduler.Elapsed += Timer_Elapsed;