I am developing a Windows service in C#. When I do the test of the service I get the debug
folder inside the bin
folder.
I know if I want to make a deployment I should create a release
folder.
But my question is: if I took the files from the debug folder and deploy them into our servers, would that cause any issues or security vulnerabilities?
No, there won't be any issues for C# applications. There will be issues if your program also includes native (e.g. C++) components, because you then require special libraries to be present on the target system, which are normally not there. But for .NET applications, there's no such thing as a debug runtime, so a program will run and work just the same whether it's compiled as debug or as release. The only difference is that the debug version will be slightly slower and maybe bigger.
There's also no (extra) security vulnerability added by running a program in debug mode. Rather the opposite actually, because release removes assertions you might have placed in your code and so your program fails to abort if something unexpected happens. It will be easier to dissassemble your program if it is a debug build, but unless you have some unrelated security leak, the program code is not available for anyone to look at, and "security trough obscurity" doesn't work, anyway.
So it's perfectly fine to test with a debug build on the server, this will even allow you to nicely perform some remote-debugging in case the program behaves differently than on your computer. But in the end, you should swap to release.