cancel
Showing results for 
Search instead for 
Did you mean: 

error:-2147024891

Former Member
0 Kudos

Hi,

While trying to connect to the business one db , i got this code error:

-2147024891

Anybody knows what does it mean???

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Ola: I use DI server and the DI API, si I have this also added to my project. This is the DCOM object that I had to allow access the ASPNET user to in the DCOM setup.

Wolfram: If you have upgraded SBO you should uninstall and reinstall everything related to DI API or DI server after you have upgraded. Don't know way, but it worked for me.

Endre

Former Member
0 Kudos

@endre: that means you have the SAPbobsCOM67-object (from the 67 di api) in your dcom manager?

Former Member
0 Kudos

@Wolfram: No, sorry my misstake. I only have the SAPbouiCOM object and SBODI_server object in my DCOM manager. Also I'm using version 2004, so it might act different.

Then I'm lost. I use the DI server SOAP interface in my applications.

Endre

Former Member
0 Kudos

Just to make sure: You have added the object to the references list?

Endre

Former Member
0 Kudos

Hi Solem,

Is it normal that the only sap object we can find in the dcom objects is the SAPbouiCOM???(ps:i have win2000)

I have exactly the same problem...And i have added the good reference , the same code which work with a c# application...

Wolfram, did you get this error with the old version the 670.183.01 one trying a webapplication???

Because i installed the old version , and i have got the same error ...

If i can't resolve the problem as soon as possible i won't pass this year...:((

Former Member
0 Kudos

i added the SAPbobsCOM67.dll (which does not appear in the dcom manager) and the Interop.SAPbouiCOM.dll (which obviously does).

just as i did with the 65-version before the update.

Former Member
0 Kudos

can't we add the SAPbobsCOm object in the dcom manager??

Message was edited by: Ola Awaly

former_member185703
Active Contributor
0 Kudos

DI API is a COM library. Therefore it is not listed in DCOMCNFG.

When using DI API for a webservice you must take into account that the service does not run in your Windows user context as it does when using DI API in a desktop application.

I am not sure which authorizations you have to set exactly, but there may be other participants in this forum who know in detail.

In addition DI API has been designed for applications though it runs with services as well. DI Server has been made for this.

HTH,

Frank

0 Kudos

We have developed a big ASP.NET-solution that uses the DI to connect to the SAP DB. We had no problem in testing because the SQL-server has always been the Webserver. But if I connect from a different Server to the SAP DB, I get that error. I have - same as Wolfram - changed and experimented with DCOM, IIS and Windows security and all other hints given recently, but nothing works.

It is a terrible suggestion rewriting all our code because DI server should be the only right tool for this soulution. Isn´t there any professional out there that is involved in ASP.NET connections with SAP DB using DI API?

Best regards

Marian

0 Kudos

.... Zzzzzz

Maybe there is NO professional...

Former Member
0 Kudos

I've been reading a lot of pages, trying to get any solution for

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

Error: -2147024891

or

Connection to SBO-Common has failed

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

But SAP Support does not have any idea, We are taing our business somewhere else...

Former Member
0 Kudos

You get the Access Denied error because your ASPNET user don't have access tou the SAP DCOM objects. Fint the object under your DCOM manager (componenet services in win2003 and XP) and Add the local ASPNET (not domain user) user the the access list.

Endre

Former Member
0 Kudos

hi,

thanks for your effort.

the SAPbouiCOM (the only sap object i can find in the dcom manager) allows full access to both the local and the domain aspnet user.

it still does not connect.

anything else i can do?

Former Member
0 Kudos

hello ribeiro!

i did. the result is the following:

ErrorCode: -2147024891

ErrorMessage: - Zugriff verweigert (access denied)

do you have an idea?

thanks.

Former Member
0 Kudos

Hi,

See the links in my first post, maybe it could give you some tips.

It could be some problem with the OS, like deny access to some files, or DCOM.

Ribeiro Santos

Former Member
0 Kudos

hi,

i've tried any combination of dcom-settings i could possibly think of (including the ones mentioned in the other threads , both on the client and the server.

nothing seems to help. all the settings appear to be correct. i'm desperate.

best regards

Former Member
0 Kudos

Hi,

Could you try to create new VB.net project, and try to connect?

(Not asp.net)

Just to check if the problem is in the asp or not.

Ribeiro Santos

Former Member
0 Kudos

hello,

as i said, after failing to connect with the asp.net-application, i created a windows version (both in c#, so i don't think the language matters) using basically the same code.

the windows version works perfectly fine, so it seems obvious to me that the problem is specifically web-related.

Former Member
0 Kudos

hello!

i get the same error message after updating to version 2004a(6.70.185).

here's my code:

SAPbobsCOM.Company oCompany = new SAPbobsCOM.CompanyClass();

oCompany.UseTrusted=false;

oCompany.Server="MYSERVER";

oCompany.CompanyDB="MYDB";

oCompany.UserName="MYUSER";

oCompany.Password="MYPW";

oCompany.Connect();

if (oCompany.Connected==true)

Response.Write("");

else

Response.Write(""); =comsecurity

the code works fine with version 6.5 and still works for a windows application, but a webapplication with the same code on the same workstation cannot establish a connection.

thanks a lot

Former Member
0 Kudos

Hi Wolfram Schubert,

Try this code (check syntax) to show the error message:

iRet as integer

iErrCode as integer

sErrDesc as string

lRet = oCompany.Connect()

if lRet <> 0 then

oCompany.GetLastError(iErrCode, sErrDesc)

Response.Write("<script language=javascript>alert('" + sErrDesc + "');</script>");

end if

(Check also the privileges in IIS)

Ribeiro Santos

Former Member
0 Kudos

Yes actually , Wolfram , i have exactly the same error as you, the same code on a windows application works , but in a webapplication doesn't

The workstation and the server are on the same domain ...I really don't find where is the problem ...If you find it plz tell me...

Regards,

Ola

Former Member
0 Kudos

Try to look a little bit more on this forum and you'll find the solution.

Regards,

Vincent

Former Member
0 Kudos

Hi Vincent,

I already search on this forum before posting and didn't find a response ...If you know this error plz tell me ...

Regards,

Ola

Former Member
0 Kudos

Hi,

(What type of search you did? )

Ribeiro Santos

Former Member
0 Kudos

Hi,

While trying to install SAPGUI 710(R/3) cleint in local PC, its showing error like Access Denied error code

-2147024891.

pls help me for the same.

Former Member
0 Kudos

You may the solution of William Gast at:

[|]

It solved my same problem !!!

Niv.