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

Completely Open Source @ GitHub

Does arachnode.net scale? | Download the latest release

Getting IndexReader is closed error :(

rated by 0 users
Not Answered This post has 0 verified answers | 3 Replies | 2 Followers

Top 10 Contributor
83 Posts
InvestisDev posted on Thu, Apr 11 2013 1:57 PM

Hello Mike,

We are using the older service.asmx in which we have the Hits object and on making a loop off it getting field values.

If we will hit this service.asmx multiple times frequently to hit this service at the same time (almost), it throws error that IndexReader is closed. The frequency of this error increased. Please suggest some way to fix this.

Thanks,

All Replies

Top 10 Contributor
1,905 Posts

1.) Have you changed any code?  If so, what?

2.) What is frequently, multiple times mean, speficially?  Concurrently?  In serial fashion?

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

Top 10 Contributor
83 Posts

Hi Mike,

Sorry for delay in reply.

1) Yes we have done code changes in global.asax and service.asmx which I will send you in mail.

2) We have multiple domains in our environment and all the search requests are responded by single service.asmx so when there are concurrently heavy requests, many times we get the error.

Thanks

Top 10 Contributor
1,905 Posts

Looks like you have made heavy changes to both files.

I'm not sure I can help you with this since so much code has changed.  Meaning: I wouldn't be able to tell since it isn't AN code and I can't repro here.

I do know that the default service was AOK with multiple requests - so something about the modifications you have made is breaking it.

I'm sorry...

Thanks,
Mike 

 

 

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 (4 items) | RSS
An Open Source C# web crawler with Lucene.NET search using SQL 2008/2012/CE

copyright 2004-2017, arachnode.net LLC