Click here to Skip to main content
15,851,701 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have developed Mechanical module in asp.net c#. The database is SQL server 2008.
My module is running smoothly. But today when i click menu to see the approved data from approval page then It shows the following error. It comes only for one page the other page is ok.

C#
Exception of type 'System.OutOfMemoryException' was thrown.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

C#
Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.


Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

C#
[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Reflection.RuntimeAssembly.GetRawBytes(RuntimeAssembly assembly, ObjectHandleOnStack retRawBytes) +0
   System.Reflection.RuntimeAssembly.GetRawBytes() +38
   System.Security.Policy.Hash.GetRawData() +68
   System.Security.Policy.Hash.GenerateHash(Type hashType) +75
   System.Security.Policy.Hash.get_SHA1() +101
   System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +68
   System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +77
   System.Web.Handlers.RuntimeScriptResourceHandler.GetScriptResourceUrlImpl(List`1 assemblyResourceLists, Boolean zip) +378
   System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(List`1 assemblyResourceLists, Boolean zip) +658
   System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip) +143
   System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) +296
   System.Web.UI.ScriptReference.GetUrlInternal(ScriptManager scriptManager, Boolean zip) +613
   System.Web.UI.ScriptReference.GetUrl(ScriptManager scriptManager, Boolean zip) +213
   System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +202
   System.Web.UI.ScriptManager.RegisterScripts() +444
   System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +122
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8872106
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2716
Posted
Updated 24-Nov-14 0:54am
v3
Comments
OriginalGriff 24-Nov-14 5:51am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Without some idea of the code that generated the error, there really isn't anything we can do. Something in your code is trying to allocate more memory than teh framework can provide - that could be one enormous object, or an enormous number of smaller ones. We can't tell...
Use the "Improve question" widget to edit your question and provide better information.
Sumon562 24-Nov-14 5:55am    
Actually this occurs in publish site. when I debug in my pc then it is ok.
OriginalGriff 24-Nov-14 6:06am    
That still means we need the code: we can't diagnose code problems without it!
All it means is that the site limits on available memory are probably lower, or it's 32 bit and you are 64 or vice versa - we can't tell.

If you want help, we need information. Help us to help you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900