huysentruitw / SapNwRfc

SAP NetWeaver RFC library for .NET 5, .NET Core and .NET Framework
MIT License
150 stars 45 forks source link

issue in conn.Connect() #1

Closed Mohammedsalah19 closed 4 years ago

Mohammedsalah19 commented 4 years ago

System.EntryPointNotFoundException: 'Unable to find an entry point named 'RfcOpenConnection' in DLL 'sapnwrfc'.'

huysentruitw commented 4 years ago

are you using version 7.50 of the SAP NetWeaver SDK?

Mohammedsalah19 commented 4 years ago

how check my version?

huysentruitw commented 4 years ago

Can you right-click the sapnwrfc.dll file and go to the 'Details' tab?

image

Mohammedsalah19 commented 4 years ago

no i have not this version... can i upload dll as reference in my project is it enough ?

huysentruitw commented 4 years ago

I'm afraid the SAP license does not allow me or you to share any of their DLL's, they need to be officially downloaded by a user with access to the SAP support portal: https://launchpad.support.sap.com/#/notes/2573790

Mohammedsalah19 commented 4 years ago

DAMN.. i haven't access "D

huysentruitw commented 4 years ago

If you do get the libraries somehow, the DLL's are in the \nwrfcsdk\lib subfolder in the .zip archive.

huysentruitw commented 4 years ago

@Mohammedsalah19 I made a stupid mistake while releasing this library. The generated DLL had the same name as the DLL from SAP, so that's why your application picked the wrong one and you got the 'Unable to find an entry point named 'RfcOpenConnection' in DLL 'sapnwrfc' error 🤦

huysentruitw commented 4 years ago

Please retest with version 1.0.0.52 of this package. I would clean your projects bin\ and obj\ folder once and rebuild everything.

Can you let me know how it goes?

huysentruitw commented 4 years ago

I'll close this issue for now as it has been identified and fixed at my end. Feel free to reopen if it isn't fixed for you.