會發生這樣的問題,是因為在page裡面寫了讀取CPU、記憶體的功能造成的。

PerformanceCounter performanceCounterRAM = new PerformanceCounter();
performanceCounterRAM.CounterName = "% Committed Bytes In Use";
performanceCounterRAM.CategoryName = "Memory";
String ram = ((int)(performanceCounterRAM.NextValue())).ToString(CultureInfo.InvariantCulture) + "%";

Page.Title = string.Format("ABC網站(記憶體:{0}){1:d}", ram, DateTime.Now);

但讀取CPU與記憶體會與權限有關係,故須要調整應用程式集區的識別身分,如下調整為NetworkService就可以了。

參考資料:

LEAVE A REPLY

Please enter your comment!
Please enter your name here