|
Exception of type 'System.OutOfMemoryException' was thrown
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
- The bin directory or its contents is modified
- The number of re-compilations (aspx, ascx or asax) exceeds the limit specified by the
<compilation numRecompilesBeforeAppRestart=/>
setting in machine.config or web.config (by default this is set to 15)
- The physical path of the virtual directory is modified
- The CAS policy is modified
- The web service is restarted
- Resouce file are modified
so, changes in any of the above file might solve this Exception issue.
Hope this helps.
|