You are here : Home » knowledge exchange
Exception of type 'System.OutOfMemoryException' was thrown
Description: An unhandled exception has occured during the execution of the current web request.Please review the current stack trace for more information about the error and where it originated in the code.
If you have host your site in shared web hosting, than one reason of occurence of this type of error might due to IIS and in situations where the server is under a heavy load, IIS reset might solve this issue but if hosting provider will not allow to manage IIS than we can forcefully restart IIS by recycling of APPDomain.
In Asp.net ,
When the application domain is unloaded , the next request that comes in all assemblies need to be reloaded, the code has to be re-jitted and the cache including any in-proc session variables etc. are empty.
An application domain will unload when any one of the following occurs:
Machine.Config, Web.Config or Global.asax are modified
so, changes in any of the above file might solve this Exception issue.
Hope this helps.


Copyright © 2005-2011 Narola Infotech, Custom Software & Website Development Company | All Rights Reserved.