arachnode.net
An Open Source C# web crawler with Lucene.NET search using SQL Server 2008/2012/2014/2016/CE An Open Source C# web crawler with Lucene.NET search using MongoDB/RavenDB/Hadoop
Search the Live Index Does arachnode.net scale? | Download the latest release

A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll

rated by 0 users
This post has 0 Replies | 1 Follower

Top 10 Contributor
Posts 1,905
arachnode.net Posted: Tue, Apr 14 2015 11:08 PM

You may encounter the following exception in VS if Indexing is allowed on your Downloaded* directories:

Ensure the highlighted CheckBox is unchecked.

{System.IO.IOException: The process cannot access the file 'M:\Applications\arachnode.net - Trunk - 2012\Console\bin\Debug\DownloadedWebPages\http\localhost\56830\Test\_207228311761591401842212083919142105352.htm' because it is being used by another process.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)

   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)

   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)

   at Arachnode.SiteCrawler.Managers.WebPageManager`1.ManageWebPage(Int64 webPageID, String absoluteUri, Byte[] source, Encoding encoding, String fullTextIndexType, Boolean extractWebPageMetaData, Boolean insertWebPageMetaData, Boolean saveWebPageToDisk) in m:\Applications\arachnode.net - Trunk - 2012 - Copy\SiteCrawler\Managers\WebPageManager.cs:line 151}

For best service when you require assistance:

  1. Check the DisallowedAbsoluteUris and Exceptions tables first.
  2. Cut and paste actual exceptions from the Exceptions table.
  3. Include screenshots.

Skype: arachnodedotnet

Page 1 of 1 (1 items) | RSS
An Open Source C# web crawler with Lucene.NET search using SQL 2008/2012/CE

copyright 2004-2017, arachnode.net LLC