This is a migrated thread and some comments may be shown as answers.

Getting OutOfMemoryException when website running

2 Answers 96 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
VnDevil
Top achievements
Rank 2
VnDevil asked on 25 Aug 2011, 09:15 AM
Hi Telerik,

I'm running my website normal before, but now I am getting the following error

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.

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.

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:

[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) +393
   System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(List`1 assemblyResourceLists, Boolean zip) +677
   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) +203
   System.Web.UI.ScriptManager.RegisterScripts() +443
   System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +122
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8938218
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2716


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


This error page is used RadControls administration page, I tried to run other projects use RadControls on this server, they're still work fine, but this project is to experience such a problem.

Is there any way to resolve this, its very urgent.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vasil
Telerik team
answered on 25 Aug 2011, 12:59 PM
Hello Vndevil,

In the Stack Trace I see that there are no RadControls involved, so I believe that something else causes the error. You could read this thread in asp.net forum that discuss a similar problem:
http://forums.asp.net/t/1703117.aspx/1

Kind regards,
Vasil
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 25 Aug 2011, 03:37 PM
Hello,

you can solve this issue
method1 : restart your visual studio
method2 : Add/increase virtul memory

Thanks,
Jayesh Goyani
Tags
General Discussions
Asked by
VnDevil
Top achievements
Rank 2
Answers by
Vasil
Telerik team
Jayesh Goyani
Top achievements
Rank 2
Share this question
or