Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 636331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:30:12+00:00 2026-05-13T20:30:12+00:00

Our software is written in C# and needs to connect to SAP. As some

  • 0

Our software is written in C# and needs to connect to SAP. As some of our customers use older versions of SAP, and others don’t have SAP PI, we can’t connect through webservices.

I tried to connect to SAP through the SAP NetWeaver Remote Function Call Library (sapnwrfc.dll) as follows:

  • Add sapnwrfc.dll and the other DLLs from NWRFC_6-20004550.SAR (being icudt34.dll, icuin34.dll, icuuc34.dll, libicudecnumber.dll, and libsapucum.dll) to C:\WINDOWS\system32, to be sure that they can be found.
  • In my C# code add the following in the class definition:
    [DllImport("sapnwrfc.dll", CharSet = CharSet.Auto)]
    public static extern void RfcInit();
    

    and the following in the method that should do the work:

    RfcInit();
    

Running this code gives a DllNotFoundException:

Unable to load DLL ‘sapnwrfc.dll’: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)

Running the standard connect-to-C++-from-C# example:

[DllImport("user32.dll", CharSet = CharSet.Unicode)]<br/>
public static extern int MessageBox(IntPtr hWnd, String text, String caption, uint type);
MessageBox(new IntPtr(0), "Hello World!", "Hello Dialog", 0);

works fine.

Any suggestions how to make this work fine (so that we don’t need to workaround this problem by writing a Java proxy using JCo)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:30:13+00:00Added an answer on May 13, 2026 at 8:30 pm

    Did you check with the Dependency Viewer if you are missing some DLL? I did once write a managed wrapper for the rfc library (at least part of it) and I remember having a problem with some of the rfc libraries I downloaded. One version simply did not work and I did not figure out what was wrong. Another version (older) worked just fine.

    I did however have problems with the unicode library (some memory access problem that appeared randomly) so I had to switch to the non-unicode version…

    If I had to do something like this again, I would very seriously consider to buy a connector:
    http://www.theobald-software.com/en/products/erpconnect.htm

    I cannot say if it is any good, but they seem to be around for a while now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When looking at the myriad types of software written at our company, I instantly
For our software we use hardware dongles to protect the software. No protection is
Our clients use a vb6 version of our software. We are upgrading them to
We just added an autoupdater in our software and got some bug report saying
I have written a Windows service to collect information from all of our SQL
I have written a C++ app that sync's Outlook emails with our central server
Our software manages a lot of data feeds from various sources: real time replicated
Our software must be able to run on SQL Server 2000 and 2005. To
Our software manages libraries, museums, archives etc. We'd like to let the users (namely
When testing our software on several different systems (98-XP-Vista-Seven-Linux-etc), I think that the best

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.