Question

First of all, ich have tried som published solutions like this:

I have no access to the Build Server, seams to be down. So i work with the fIles that i get.

First i have testet the Nuget Package version. (Oldes one) I get the errors.

After that i load the current version from the guthub repo version 0.4.0.2002

I always get the excaption with the 400 Bad Request and the waitFlush error.

My Code looks like that:

public void SolrInitialSetup()
    {
        if (doorValue)
        {
            try
            {
                Startup.Init<Document>("http://localhost:8080/solr");
                System.Diagnostics.Debug.WriteLine("Solr Connection successfull!");
                doorValue = false;
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine("Solr Connection failed with error: " + e);
            }

        }
        else
        {
            System.Diagnostics.Debug.WriteLine("Solr Connection already exist!");
        }

        var solr = ServiceLocator.Current.GetInstance<ISolrOperations<Document>>();
        var docList = sampledocsDb.Docs.ToList();
        foreach (var doc in docList)
        {
            var d = new Document()
            {
                Id = doc.FieldId,
                Title = doc.FieldTitle,
                Content = doc.FieldContent
            };
            solr.Add(d);
            solr.Commit(); 
        }


    }
Was it helpful?

Solution

OK. Strange. The Build Server is now online. Perhaps down yesterday. Now with that Build it works fine.

Problem is that it is the same version number, but it is an other version. When a new Version is published, they should increment the Build Version Number.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top