出于某种原因,回收后,一些应用程序不断抛出以下错误:Thread was being aborted. at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)这是什么意思?
1 回答
饮歌长啸
TA贡献1951条经验 获得超3个赞
这意味着在您的代码中某个地方正在创建一个线程,该线程花费的时间比关闭超时允许的时间更长。该线程必须被强制关闭,强制关闭的方法是通过 Thread.Abort() 调用。
因此,请检查您的代码是否存在无限while
循环或for
具有不正确结束条件的循环。然而,这可能只是由任何需要超过 30 秒左右才能完成其工作的缓慢代码引起的。
- 1 回答
- 0 关注
- 292 浏览
添加回答
举报
0/150
提交
取消