Hi,
Trying to connect to a company via ASP.NET 2.0 in C# and when I'm at the line oCompany.Connect()
The progress bar goes on and freezes at the middle without giving any errors or indication of a problem. What can I do ?
Here's the part of the code which try to connect
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 problem";
return oCompany;