I have a ASP .NET Core website and I’m running into the following error on subsequent runs:
Incorrect index version. This version can not be updated.
Here’s the stack trace for the error (and no inner exceptions):
at .(String )
at .(Boolean , String , Boolean , IndexSettings )
at …ctor(String )
at GroupDocs.Search.Index…ctor(String indexFolder)
at Program.Main(String args) in Program.cs:line 21
On the first run of the project the index gets created fine if the folder is empty. However, if I try to use the local index folder from the previous execution, the exception is thrown. What causes this exception and how can I avoid this in ASP .NET Core solution?