Reputation: 43768
According to all the MSDN docs I can find, to disable Concurrent GC, you add this to your application config:
<runtime>
<gcConcurrent enabled="false"/>
</runtime>
However, I have a .NET 4 ASP.NET app that I am running though VS2010 using Cassini (ASP.NET Development Server). Whether I specify enabled="true"
or enabled="false"
either way, making a call to GC.RegisterForFullGCNotification()
throws the exception:
This API is not available when the concurrent GC is enabled.
I have tried it running with and without debug, and everything fails the same way. Any ideas how to make this work?
Upvotes: 1
Views: 893
Reputation: 357
Adding the relevant setting to Cassini's own config file appears to work.
Upvotes: 0
Reputation: 21112
I recommend you use IIS Express, it's free and a much more capable web server than Cassini.
Upvotes: 1