I have created a RFC server in .NET and I'm calling it in my ABAP program by mentioning the destination.
I have defined this destination in SM59 and when I test the connection from there it shows success.
When I go to txn SMGW it shows me the RFC server(Registered Program).
But now when I call it from my ABAP program it gives a ABAP dump saying "Connection closed".
Any ideas about what could be the reason.