Skip to Content
0
Former Member
Jan 26, 2007 at 04:09 PM

ASP.NET Connection to Company problem

25 Views

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;