sjdirect / abotx

Cross Platform C# Web crawler framework, headless browser, parallel crawler. Please star this project! +1.
https://abotx.org
131 stars 23 forks source link

Access to the registry key 'Global' is denied. #10

Closed sjdirect closed 7 years ago

sjdirect commented 8 years ago

Email received...

I'm running your latest code (1.2.44) and it runs just fine when not running under IIS. When I place my code under IIS (ASPNET Core 1.0) I get the following exception:

Access to the registry key 'Global' is denied.

This occurs when the below code is executed:

ParallelImplementationContainer implContainer = new ParallelImplementationContainer(); implContainer.SiteToCrawlProvider = siteToCrawlProvider; implContainer.WebCrawlerFactory = abotFactory;

So is there any registry access going on in AbotX that I don't know about? Or is this something going on inside of IIS (running on Server 2012 R2)?

sjdirect commented 8 years ago

I suspect it has to do with performance counters. Looks like .net core doesn't suppport it. The new Auto Tuning feature uses performance counters to check resource usage. I'll take a closer look at this soon.

sjdirect commented 8 years ago

Email received...

I’m not trying to use Tuning or Throttling - I have them disabled (supposedly). The logs reflect this fact also. So are you saying that I need to go back to a previous version before you started adding these features, or that you’re under the impression that I have been using these features, and they don’t work?

sjdirect commented 8 years ago

I fixed an initialization error that likely was causing your issue whether you were using the new features or not. Now the condition that calls performance counters on gets run if the AutoTuning.IsEnabled is true. Update to the latest (1.2.46) to try it out to see if it helps. Also, I found this that may be your issue with iis if you want to try to use the new features.

Hope that helps Steven