How large is your site you're exporting and importing? You may have to set the timeout on the connection string to a longer period of time. Same is true with your application pool, set it longer than the standard 20 minute timeout. Another option is to break up your export in pieces, for instance, export the site definition and all the objects first, then export all the of the site specific items like content, media library, forms, etc. second.