Please help - 'Widget Search not found'

Topics: Controls
Feb 19, 2011 at 8:02 PM

I give up - I've been trying to fix this for three days, so any help would be appreciated.

I attempted to delete the Search widget in the sidebar of the Paperclip theme, and now there's just a box showing that says -

'\\web-123win\winpackage21\\\web\content\blogengine\widgets\Search\widget.ascx.cs(9): error CS0246: The type or namespace name 'App_Code' could not be found (are you missing a using directive or an assembly reference?'

I can't figure out how to delete it using the Master file and it won't let me just click the 'x'.

The widget files are in the right place so I don't know why it won't acknowledge them.


Thank you!

Feb 20, 2011 at 8:10 AM
Edited Oct 24, 2011 at 8:41 PM

Can you post the Site.master and Site.master.cs file?

Do you get this with the Standard theme? Or just this one? 


Java Blog

Feb 20, 2011 at 2:30 PM

Thanks for replying.

I get it with all themes, including standard.

Here is the site.master -

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="site.master.cs" Inherits="site" %>
<%@ Register Src="~/admin/menu.ascx" TagName="menu" TagPrefix="uc1" %>
<%@ Import Namespace="BlogEngine.Core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" xml:lang="en">
<head runat="server" profile="">
    <link rel="stylesheet" href="style.css" type="text/css" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
    <form runat="Server">
        <div id="masthead">
            <div id="userArea">
                <div id="welcome" class="welcome" align="right">
                    <asp:LoginStatus ID="LoginStatus1" runat="Server" LoginText="Sign in" LogoutText="Sign out" EnableViewState="false" />
                <div id="Search" align="right">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <td><input type="text" value="" id="searchfield" name="SearchBox" class="searchBox" Button="SearchButton" onkeypress="if(event.keyCode==13) return Search('<%=Utils.RelativeWebRoot %>')" onfocus="SearchClear('')" onblur="SearchClear('')" /></td>
                        <td><span class="SearchButtonOuter"><a id="SearchButton" class="SearchButton" href="#" onclick="Search('<%=Utils.RelativeWebRoot %>');" onkeypress="Search('<%=Utils.RelativeWebRoot %>');"><%=BlogSettings.Instance.SearchButtonText %></a></span></td>
            <div id="title">
                <h1 class="headermaintitle"><%=BlogSettings.Instance.Name %></h1>
                <div><%=BlogSettings.Instance.Description %></div>
        <div id="nav">
            <div id="navbar">
                    <li><a href="<%=Utils.AbsoluteWebRoot %>" rel="home"><%=Resources.labels.home %></a></li>
                    <li><a href="~/page/About-me.aspx" runat="server">About me</a></li>
                    <li><a href="~/contact.aspx" runat="server">Contact</a></li>
                    <li><a href="~/archive.aspx" runat="server"><%=Resources.labels.archive %></a></li>
                    <% if (Page.User.Identity.IsAuthenticated){ %>
                    <li><a href="~/admin/Pages/Settings.aspx" runat="server">Control Panel</a></li>
                    <%} %>
        <div id="content">
            <div id="leftmenu">
            <blog:WidgetZone runat="server" />

                <% if (Page.User.Identity.IsAuthenticated){ %>
                    <uc1:menu ID="Menu1" runat="server" />
                <%} %>

                <blog:TagCloud ID="TagCloud1" runat="server" />

            <div id="main">
                <blog:SearchOnSearch ID="SearchOnSearch1" runat="server" MaxResults="3" Headline="You searched for" Text="Here are some results for the search term on this website" />
                <asp:ContentPlaceHolder ID="cphBody" runat="server" />
        <div class="footer">
            Powered by <a href="" target="_blank">BlogEngine.NET</a> <%=BlogSettings.Instance.Version() %> |
            Original Design by <a href="">Telligent</a>, Adapted by <a href="" rel="me">Caio Proiete</a>

Feb 20, 2011 at 2:31 PM

And site.master.cs -

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class site : System.Web.UI.MasterPage
  protected void Page_Load(object sender, EventArgs e)