Question SAP RFC Connect Error from Framework 5.0

j2kkjs2

New member
Joined
Jul 4, 2021
Messages
2
Programming Experience
5-10
hello,

i am making sap interface by using RFC Function.

I am using visual studio 2019/Framework 5.0.

Compile is ok, but there is error when create object.

"RfcConfigParameters rfcPar = new RfcConfigParameters();"

below is error code

'SAP.Middleware.Connector.RfcConfigParameters' threw an exception.

FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

how can i solve problem?

1626333079124.png
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,903
Location
Sydney, Australia
Programming Experience
10+
For the record, there isn't actually any such thing as .NET Framework 5.0. The last version of the .NET Framework is 4.8. .NET 5.0, as it is officially named, is actually an evolution of .NET Core, with the previous version being 3.1. .NET Core is still a framework but it is different to .NET Framework and that difference can cause confusion and issues for some people who expect them to be exactly the same in all scenarios, which they are not.
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,903
Location
Sydney, Australia
Programming Experience
10+
In .NET 5.0 and previous versions of .NET Core, you add references to your project as NuGet packages. Have you added the System.Configuration.ConfigurationManager NuGet package to your project?
 
Top Bottom