I need serious help here.
I did an ASP.NET 2.0 interface that try to connect to SAP
Well, you know the usual thing like oCompany.Connect()
Everything else work fine. I'm using SYSTEM as the user so I have plenty of permission everywhere.
when I click my TRANSFER button. I get to that .Connect() operation which is what you see here
public static SAPbobsCOM.Company SAPConnectToCompany(string Server, SAPbobsCOM.BoDataServerTypes DbServerType, string CompanyDB, string DbUserName, string DbPassword, string UserName, string Password, SAPbobsCOM.BoSuppLangs Lang, string LicenseServer, bool UseTrusted)
{
SAPbobsCOM.Company oCompany = new SAPbobsCOM.CompanyClass();
oCompany.Server = Server;
oCompany.DbServerType = DbServerType;
oCompany.CompanyDB = CompanyDB;
oCompany.DbUserName = DbUserName;
oCompany.DbPassword = DbPassword;
oCompany.UserName = UserName;
oCompany.Password = Password;
oCompany.language = Lang;
oCompany.LicenseServer = LicenseServer;
oCompany.UseTrusted = UseTrusted;
int lRetVal = oCompany.Connect();
if (lRetVal != 0)
ErrorMessage = "Connection to SAP returned with error : " + lRetVal.ToString();
return oCompany;
}
Yeah its a simple method that let me connect. What happens is that the browser show the progress bar and the code never go beyond that oCompany.Connect()
Any idea ? You know, this bad thing is with me since 6 mounths now
the parameter LisenceServer is 127.0.0.1