Skip to Content
0
Former Member
Feb 24, 2011 at 11:32 PM

First attempt at Compile, HelloWorld failure!

33 Views

Hi Forum,

Trying to develop in a long time.

My environment is SAP B1 8.8 Patch 18. I opened the HelloWorld C# shipped sample in VS2010. Clicked on Green arrow to run.

VS did convert the project to latest one. It is the UI API HelloWorld sample.

==============================================================================

This is the error I am getting at this statement - SboGuiApi.Connect( sConnectionString );

System.Runtime.InteropServices.COMException was unhandled

Message=Connection - Could not find SBO that match the connection string

Source=""

ErrorCode=-7202

StackTrace:

at SAPbouiCOM.SboGuiApiClass.Connect(String ConnectionStr)

at HelloWorld.SetApplication() in C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\CSharp\01.HelloWorld\HelloWorld.cs:line 63

at HelloWorld..ctor() in C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\CSharp\01.HelloWorld\HelloWorld.cs:line 79

at SubMain.Main() in C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\CSharp\01.HelloWorld\SubMain.cs:line 24

at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)

at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

InnerException:

==========================

Could someone help me compile my frist program in SAP B1 SDK. Thank you.

Edited by: Syed Aleem on Feb 24, 2011 6:41 PM