I translated this part of the code from vb to c# and giving me this error message. \"Not all code paths return a value\". What is the problem? Thanks in advance.
<
You need to add a return statement after your catch clause!
In case of an exception inside your try catch clause, you won't return a value. And that's exactly what your error is indicating.