PMQMi
Level 1

Time out error on sync of invoice to QB

I have one invoice with 500 line items to sync to  QB . I am using asp.net ,c# . It gives time time out error and the application is redirected to error page . 

What I understood is the for loop for copying QBInvoice.lineitem  to intuite.Ipp.QBInvoice is the reason for the  error. Is there any way to do without loop, please help!