Excel file upload into grid and validating from the database

Hi Guys,I have one issue as I am uploading the excel data to the gridview and memory as well it works when I start validating these data from the database it works on local system but when i deploy on the serveruploading also work here into gridview and memory but validating from the DB goes into infinite and user need to close the browser.