我在 Windows Vista 中运行的 Visual Studio 中有 asp.net 项目,并在标准用户(未提升)中激活了 UAC。
当我尝试在 Visual Studio Web Server 中运行我的 asp.net 项目时,该进程挂起并开始使用如此多的 CPU。如果我运行 Visual Studio 提升它的工作完美。
这是该过程正在执行的操作。似乎它正在尝试访问“Global.net clr network”,但它不起作用。
0:000> !clrstack OS 线程 ID:0xcec (0) ESP EIP
0021f09c 6dd09742 [NDirectMethodFrameGeneric: 0021f09c] Microsoft.Win32.NativeMethods.CreateFileMapping(IntPtr, SECURITY_ATTRIBUTES, Int32, Int32, Int32, System.Stringtics) 0021f0bc 0021f0bc abno .SharedPerformanceCounter+FileMapping.Initialize(System.String, Int32, Int32) 0021f11c 56a02a30 System.Diagnostics.SharedPerformanceCounter+FileMapping..ctor(System.String, Int32, Int32) 0021f12c 56a05af7 System.Diagnostics.SharedPerformanceCounter.GetCategoryData() 0021f17c 56a056b8 System.Diagnostics.SharedPerformanceCounter..ctor(System.String, System.String, System.String, System.Diagnostics.PerformanceCounterInstanceLifetime) 0021 56a0456c System.Diagnostics.PerformanceCounter.Initialize() 0021f1d0 56a0437f System.Diagnostics.PerformanceCounter.set_RawValue(Int64) 0021f1ec 569ca4d3 System.Net.NetworkingPerfCounters.Initialize() 0021f230 569c980.Section.Net.Configuration( Configuration.SettingsSection) 0021f270 569e3201 System.Net.Configuration.SettingsSectionInternal.get_Section() 0021f29c 569e2aad System.Net.Sockets.Socket.InitializeSockets() 0021f2ec 569e24e8 System.Net.Sockets.Socket..ctor(System.Net.Sockets.AddressFamily , System.Net.Sockets。SocketType, System.Net.Sockets.ProtocolType) 0021f310 00370758 Microsoft.VisualStudio.WebHost.Server.Start() 0021f33c 0037037b Microsoft.VisualStudio.WebServer.WebServerApp.Main(System.String[]) 0021f594 6dce1b4c [GCFrame: 0021f594] 0: 000> !finalizequeue 要清理的同步块:0 要释放的 MTA 接口:0
即将发布的STA接口:0
第 0 代有 104256 个可终结对象 (045e06fc->046463fc) 第 1 代有 1 个可终结对象 (045e06f8->045e06fc) 第 2 代有 22 个可终结对象 (045e06a0->045e06f8) 准备终结 0 对象 (046463fc->046463fc) 统计:MT计数 TotalSize 类名称 573bd7cc 1 20 Microsoft.Win32.SafeHandles.SafeFileHandle 56a4a3f0 1 20 Microsoft.Win32.SafeHandles.SafeLocalMemHandle 57395c34 1 44 System.Threading.ReaderWriterLock 573b8e74 1 56 System.Threading.Thread 56a3e224 1 76 System.Socket. 56a49d30 1 120 System.Diagnostics.PerformanceCounter 57395bdc 8 128 System.WeakReference 57397ba0 8 160 Microsoft.Win32.SafeHandles.SafeRegistryHandle 56a4a448 104257 2085140 Microsoft.Win32.SafeHandles.SafeFileMappingHandle 共 104279 个对象