No connection could be made because the target machine actively refused it?

If this happens always, it literally means that the machine exists but that it has no services listening on the specified port, or there is a firewall stopping you. If it happens occasionally – you used the word “sometimes” – and retrying succeeds, it is likely because the server has a full ‘backlog’. When you … Read more

Getting mouse position in unity

I’m trying to move a object to the mouse position. But it’s giving me large x value like 300 but at that place the pre placed object’s x position is -4. So how can I get the current mouse position? Thank you..

IOException: The process cannot access the file ‘file path’ because it is being used by another process

What is the cause? The error message is pretty clear: you’re trying to access a file, and it’s not accessible because another process (or even the same process) is doing something with it (and it didn’t allow any sharing). Debugging It may be pretty easy to solve (or pretty hard to understand), depending on your … Read more