cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cannot inspect Sap B1 objects while debugging in Visual Studio 2019

Former Member
0 Likes
1,281

Hello,

I am working with Visual Studio 2019 Community Edition Version 16.7.2

I have referenced the SapBusinessOneSDK.dll inside a Console Application to access SAP B1 vis DI API and I am not able to inspect the Sap B1 COM Objects while debugging.

This are the project properties of the mentioned Console App in the Debug Section:

And this are the Visual Studio Options relevant to Debugging:

How should I proceed?

Thank you.

View Entire Topic
PierreBrothier
Contributor

Hi Jean Pierre,

i got it, you'll have to add the attribute [STATThread] on you main function.


        [STAThread]
        static void Main(string[] args)
        {

Former Member
0 Likes

Wonderful! It works! Thank you.