Hello ,
I am developing an integration windows service that takes some data from 1C and transfer them to another ERP system.Nearly almost everything is working correctly.But sometimes when i try to connect with below code
| Code | 
|---|
|    V82.COMConnectorClass v82Connection = null;
   object ret = null;
 string connectString = string.Format("Srvr={0};Ref={1};Usr=\"{2}\";Pwd=\"{3}\";", "Srvr", "Ref", "Usr", "Pwd");
   try
   {
       v82Connection = new V82.COMConnectorClass();
       ret = v82Connection.Connect(connectString);//it waits at this line .. until i saw that in log file...and restart this method..      
   }
   catch
   {
       ret = null;
   } | 
it waits to eastablish a connection.and if i open log txt (this file is created from windows service that i wrote in c#) i can see that it waits.. when i restart the service and so connection is open without delay..
i wonder if there is a timeout mechanism/property that if it does not connect 30 seconds
v82Connection.Connect method will throw an exception.. so the service will try after minutes again...
like microsoft sqlconnection timeout..
thanks..
 
    
