on 02-14-2005 2:57 PM
Hi,
While trying to connect to the business one db , i got this code error:
-2147024891
Anybody knows what does it mean???
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to make sure: You have added the object to the references list?
Endre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...:((
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello ribeiro!
i did. the result is the following:
ErrorCode: -2147024891
ErrorMessage: - Zugriff verweigert (access denied)
do you have an idea?
thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Try to look a little bit more on this forum and you'll find the solution.
Regards,
Vincent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.