ESPRsult webpart cannot be used in SharePoint Designer 2007

Oct 29, 2008 at 8:48 PM
I used SharePoint Designer to create a blanck ASPX page called mytest.aspx. Then I insert the web part ESPCoreResults. The page display the following error

DataSourceID is either missing or set to an empty string

I tried to access this page from browser: http://lngnpvappd016v/pages/mytest.aspx

I got the following error:

<title>Untitled 1</title> <form method="post" action="mytest.aspx" onsubmit="javascript:return WebForm_OnSubmit();" name="form1" id="form1">
<input type="hidden" name="MSO_PageHashCode" value="4-767369910" id="MSO_PageHashCode" /> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" /> <input type="hidden" name="__REQUESTDIGEST" value="0xEF7A371CDE38E2E236F6B4DDD1CED8B4399EC40D952A40BDDCEB081F984AB6CED8ECFF45BB62D1093227C571D5ADF59BF7CFA2E9D05957270A2BF7B585D70C98,29 Oct 2008 19:33:12 -0000" id="__REQUESTDIGEST" /> <input type="hidden" name="__VIEWSTATE" value="/wEPDwUBMGRkV5+LEithYKCmFFQNuAUGc4kWxxQ=" id="__VIEWSTATE" />
Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator.
</form> Here is the content of mytest.aspx in sharepoint designer

<%@ Page Language="C#" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register tagprefix="UI" namespace="Com.FastSearch.SharePoint.WebControls.ESPSearchWebParts.UI" assembly="Com.FastSearch.SharePoint.WebControls.ESPSearchWebParts, Version=, Culture=neutral, PublicKeyToken=218315ac6ad9d202" %>
<html dir="ltr">

<head runat="server">
<meta name="ProgId" content="SharePoint.WebPartPage.Document">
<META name="WebPartPageExpansion" content="full">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled 1</title>


<form id="form1" runat="server">
<UI:ESPCoreResults runat="server" Description="ESP Result List Web Part displays the results as a list (Using XSLT which is changeable)" NoDefaultStyle="" AllowZoneChange="True" ViewContentTypeId="" AllowHide="True" ChromeType="None" UseSQLDataSourcePaging="True" HelpMode="Modeless" AllowRemove="True" Dir="Default" AllowConnect="True" PageSize="-1" HelpLink="" Title="ESP Result List" NumberOfResults="10" ID="g_54b6710f_4bf2_4d17_b23a_beea84baf52e" MissingAssembly="Cannot import this Web Part." FrameType="None" IsVisible="True" DetailLink="" QueryTemplate="content:string(&quot;{0}&quot;, mode=&quot;SIMPLEALL&quot;, annotation_class=&quot;{1}&quot;)" PartImageSmall="" PartImageLarge="/_layouts/images/searchqry.gif" ShowWithSampleData="False" ExportMode="All" LemmatizationFeature="False" SearchView="espsystemwebcluster" IsIncludedFilter="" ESPConnection="" PartOrder="0" DataSourceID="" IsIncluded="True" ExportControlledProperties="True" SuppressWebPartChrome="False" FrameState="Normal" AllowEdit="True" AllowMinimize="True" SynonymFeature="False" CatalogIconImageUrl="/_layouts/images/searchqry.gif" __MarkupType="vsattributemarkup" __WebPartId="{54B6710F-4BF2-4D17-B23A-BEEA84BAF52E}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><DataFields>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" >
  <xsl:output method="html"/>
  <!-- XSL stylesheet here -->

Please advise
Jan 12, 2009 at 8:21 AM
Edited Jan 12, 2009 at 8:53 AM

I am also getting same error while trying to add webparts using customized page . Please let me know if anyone get soultion for this .

Code in the page : 
<WebPartPages:WebPartZone ID="wpBottom" Orientation="Vertical" runat="server" Title="Bottom Zone" AllowPersonalization="false"><ZoneTemplate
<UI:ESPCoreResults runat="server" Description="ESP Result List Web Part displays the results as a list (Using XSLT which is changeable)" NoDefaultStyle="" AllowZoneChange="True" ViewContentTypeId="" AllowHide="True" ChromeType="None" UseSQLDataSourcePaging="True" HelpMode="Modeless" AllowRemove="True" Dir="Default" AllowConnect="True" PageSize="-1" HelpLink="" Title="ESP Result List" NumberOfResults="10" ID="g_337ec537_5aef_499c_938f_24843c6314ee" MissingAssembly="Cannot import this Web Part." FrameType="None" IsVisible="True" DetailLink="" QueryTemplate="content:string(&quot;{0}&quot;, mode=&quot;SIMPLEALL&quot;, annotation_class=&quot;{1}&quot;)" PartImageSmall="" PartImageLarge="/_layouts/images/searchqry.gif" ShowWithSampleData="False" ExportMode="All" LemmatizationFeature="False" SearchView="espsystemwebcluster" IsIncludedFilter="" ESPConnection="" PartOrder="1" DataSourceID="" IsIncluded="True" ExportControlledProperties="True" SuppressWebPartChrome="False" FrameState="Normal" AllowEdit="True" AllowMinimize="True" SynonymFeature="False" CatalogIconImageUrl="/_layouts/images/searchqry.gif" __MarkupType="vsattributemarkup" __WebPartId="{337EC537-5AEF-499C-938F-24843C6314EE}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""> </UI:ESPCoreResults></ZoneTemplate></WebPartPages:WebPartZone>
I have configured Fastserver setting in ESPConnectionCOnfig file already



Jan 16, 2009 at 11:49 AM
dev team

can anyone tell me input on htis ... what should be assigned to datasourceid ?
Jan 26, 2009 at 4:00 PM
Hi, it would be very kind if someone maybe from the dev team could give some input on this. I'm also stuck on that issue.
You can insert ESP Webparts with the Sharepoint browser integrated editor, but when you edit the page with the Designer, the webparts on the page get unusable.
Jul 14, 2009 at 8:48 PM

Adding sample data to the webparts fixes this problem in SPD.

Or recompile the base class with

this.SampleData = "<All_Results>  <Result>    <workid>1</workid>    <rank>222</rank>    <title>Title of document or web page</title>    <author>Author of document or web page</author>    <size>1025</size>    <sitename></sitename>    <url></url>    <imageurl>/_layouts/images/aspx16.gif</imageurl><description>This is the summary of the document or web page. The summary is generated from the original document based on matches with query terms. In some cases, the summary is a description provided by the author.</description><write>December 26, 2004</write></Result></All_Results>";

in OnInit.

The larger problem seems to be with how SPD introduces whitespace into the Xsl attribute in the webparts.  Adding

                this.Xsl = this.Xsl.Trim();

right below the code previously entered sorts this one.