dotnetcore / DotnetSpider

DotnetSpider, a .NET standard web crawling library. It is lightweight, efficient and fast high-level web crawling & scraping framework
MIT License
3.98k stars 1.04k forks source link

第一个简单的爬虫错误 #199

Closed JiangYueLin7 closed 3 years ago

JiangYueLin7 commented 3 years ago

https://github.com/dotnetcore/DotnetSpider/wiki/1-%E7%AC%AC%E4%B8%80%E4%B8%AA%E7%AE%80%E5%8D%95%E7%9A%84%E7%88%AC%E8%99%AB

The type initializer for 'DotnetSpider.Infrastructure.SystemInformation' threw an exception.

image

JiangYueLin7 commented 3 years ago

我跟着例子走的

zlzforever commented 3 years ago

用的是哪个版本的包。可否帮我定位一下是哪一行代码?这是因为取不同操作系统的系统参数(内存)出错了

JiangYueLin7 commented 3 years ago

用的是哪个版本的包。可否帮我定位一下是哪一行代码?这是因为取不同操作系统的系统参数(内存)出错了

用的是5.0.0-beta1版本,代码是Main方法下的 await builder.Build().RunAsync();