2
Vote

Failed to instantiate factory Com.FastSearch.Esp.Search.Http.HttpSearchFactory. Exception was: Exception has been thrown by the target of an invocation.

description

I downloaded and installed the latest version of this web part. However, upon trying to configure the web part, I receive this error.
 
Failed to instantiate factory Com.FastSearch.Esp.Search.Http.HttpSearchFactory. Exception was: Exception has been thrown by the target of an invocation.
 
I read in another thread that this was fixed. Since I have the latest source, I was hoping this was fixed. How can I resolve this error?
 
Thanks you!
Kevin

comments

FatId wrote Apr 22, 2009 at 5:56 PM

I am see the same problem on three seperate SharePoint enviroments.
All three running SP1.

Looke likes this code is returning null.
    private static ESPConnectionData GetESPConnectionData(SPWebApplication spweb)
    {
        return spweb.GetChild<ESPConnectionData>(ESPConnectionData.ESP_CONNECTION_DATA);
    }

wrote Apr 22, 2009 at 5:56 PM

FatId wrote May 26, 2009 at 3:12 PM

I was able to get around the problem by editing the search results web ESP connection settings to <server name>:15100.
After clicking apply, I was able to select search view.

Hope this helps.

btw, I'm not a FAST employee, just a fellow customer.

johnwpowell wrote Aug 20, 2009 at 7:20 PM

For some reason InitWebApplicationData() in ESPSearchManager is never used. It appears that this code is supposed to initialize the persisted object if it doesn't exsist.

Here is how I modified the code:
    private static ESPConnectionData GetESPConnectionData(SPWebApplication spweb)
    {
        // get the persisted object
        var data = spweb.GetChild<ESPConnectionData>(ESPConnectionData.ESP_CONNECTION_DATA);
        if(data == null)
        {
            // if it doesn't exist, create it
            data = ESPConnectionData.CreateNew(spweb); // you could call InitWebApplicationData() here
        }
        return data;
    }
Added the following to the ESPConnectionData class
    public static ESPConnectionData CreateNew(SPWebApplication webApplication)
    {
        return new ESPConnectionData(webApplication, Guid.NewGuid());
    }

wrote Feb 13, 2013 at 10:22 PM