Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 共享主机上的System.OutOfMemoryException_.net_Asp.net Mvc 3_Shared Hosting - Fatal编程技术网

.net 共享主机上的System.OutOfMemoryException

.net 共享主机上的System.OutOfMemoryException,.net,asp.net-mvc-3,shared-hosting,.net,Asp.net Mvc 3,Shared Hosting,我有一个共享的托管网站,我有3个网站托管。2个域和一个子域 我的子域1有问题。每次我去那里,我都会感到 'System.OutOfMemoryException' Server Error in '/' Application. Exception of type 'System.OutOfMemoryException' was thrown. Description: An unhandled exception occurred during the execution of the

我有一个共享的托管网站,我有3个网站托管。2个域和一个子域

我的子域1有问题。每次我去那里,我都会感到

'System.OutOfMemoryException' 

Server Error in '/' Application.
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.

Stack Trace:


[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677

[HttpException (0x80004005): Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9090876
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
这些网站已经部署了几个星期了,我是唯一使用它的用户。自从几周前发布以来,没有对代码做过任何新的更改,当我上周使用该网站时,它运行良好

我试图重新加载所有代码,但仍然存在相同的问题。代码的本地副本工作正常,没有问题


我的另外两个站点功能正常

您的其他站点可能已将其使用量增加到您的总内存需求大于托管公司分配的内存的程度。与他们联系,向您的帐户添加更多ram。

您的所有站点都使用相同的应用程序池是32位还是64位?是的,我给他们发了电子邮件,因为我看不到任何地方,上面都显示了我有多少内存以及我使用了多少内存。是的,他们回复我,说它正在工作。一定是一些随机事件。随机事件的问题是它很可能再次发生。您的其他站点的内存使用很可能会随着时间的推移而发生变化,因此将来您可能仍然会遇到相同的错误(如果流量增加,则会更频繁)。归根结底,你是否从这些网站中赚钱,或者如果有人看到这个错误,这在其他方面是否重要?如果不是。。那就接受它将来还会发生。但如果这真的很重要,那就用你目前的提供商或新的提供商来支付更好的主机托管。其中2个网站我不赚钱。我确实赚了一点钱。已经使用了一年半,以前从未见过这种情况发生。我确实对该站点进行了ping检查,以查看该站点是否已关闭。我想在我和他们在一起的时候,当他们被DOS攻击击中时,他们曾经做过一次。所以,直到它成为一个巨大的问题,影响到付费网站,我将离开它。