Adding ESP Web Parts programmatically

Jan 13, 2010 at 7:32 PM

We are adding web parts programmatically via a feature to every users mysite.

I need to add the ESP web parts to the web parts that are already being added.

Referencing the ESP-Searchapi.dll does not work.  ( VS 2008 does not like the - (dash) in the name.  Renaming doesn't work either.)

Below is the code that I am using to add the Outlook web access web parts:

//adds all the webparts needed on the users mysite
                //Top Zone, Middle Left Zone, Middle Right Zone, Bottom Zone
                OWAInboxPart wpInboxPart = new OWAInboxPart();
                wpInboxPart.OWAServerAddressRoot = "http://xxx_server_xxx/owa";
                wpInboxPart.MailboxName = Web.CurrentUser.Email;
                wpInboxPart.Title = "My Inbox";
                Manager.AddWebPart(wpInboxPart, "MiddleRightZone", 0)

What do I need to do to get the ESP web parts available to VS?