ASP.NET isn’t php and there are not script timeout/memory limits per se. You can limit the amount of memory the process will use in the app pool, and timeouts can happen in several places.
The right direction is to offload the process into another thread (good) or another process (much better).