The project compiles without any problems but when I add the user control to an Umbraco Macro and try to view the page the following error is shown on the page:
Error creating control (usercontrols/SearchResultList.ascx). Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!
and then this in the stack trace:
Error creating usercontrol (usercontrols/SearchResultList.ascx) c:\...\usercontrols\SearchResultList.ascx(9): error CS0234: The type or namespace name 'SeachResults' does not exist in the namespace 'Examine' (are you missing an assembly reference?) at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at umbraco.macro.loadUserControl(String fileName, MacroModel model, Hashtable pageElements)
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Examine;
Examine dll Problem
I've created a user control for an Umbraco 4.9.1 site based on the Umbraco TV Examin example at http://umbraco.com/help-and-support/video-tutorials/developing-with-umbraco/examine.aspx
The project compiles without any problems but when I add the user control to an Umbraco Macro and try to view the page the following error is shown on the page:
and then this in the stack trace:
What am I missing?
Can you paste codebehid of .ascx pls
Sure, here it is
Sorry silly mistake a typo in the .ascx file!
is working on a reply...