cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with NCO3: SAP.Middleware.Connector - SapLogonIniConfiguration

427

Good morning,

I'm new to the forum and I hope I've done everything correctly.

I hope someone can help me:

I created a simple application in VB.NET Windows Forms, Framework 4.7.2, downloaded latest version SAPNCO and SAPNCO_UTILS and added to references.

On my Form I added a Button and put this simple line of code on the Click event:

Dim mySapLogon As SapLogonIniConfiguration = SapLogonIniConfiguration.Create()

I run the program in Visual Studio 2017: everything works fine, no errors.

I run the program in Visual Studio 2022: it throws an exception of the type System.NullReferenceException.

Any help is welcome.

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

Good Evening,

I bypass the problem by adding a condition to:

System.NullReferenceException where module name is different from sapnco.dll

Now everything works correctly, but if anyone has to suggest another solution it would be appreciated.

N.B. I also tried wrapping the code in a Try block but it's not working.

Thanks

Best Regards