I just installed the UmbSearch2 package and I'm getting the following error on the page where I added the SearchBox macro:
Error creating control (/usercontrols/UmbSearch2/SearchBox.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive,
which is not allowed! See the tracestack for more information!
But for your error you need to see the stack trace of the exception (which Umbraco has hidden), you should be able to find it from the Trace window (append ?umbDebugShowTrace=true to the URL) or you can do the following:
Open Umbraco Back Office
Navigation to Developer -> Macros -> Macro Name (UmbSearch2 Box probably)
Click on the button to add the properties to the Macro, this will launch a new popup window which will parse the .NET control and show the exception
The following list shows the Public Properties from the
Control. By checking the Properties and click the "Save Properties" button at
the bottom, umbraco will create the corresponding Macro Elements.
System.Web.HttpParseException:
The resource object with key 'Search' was not found. --->
System.Web.HttpParseException: The resource object with key 'Search'
was not found. ---> System.Web.HttpException: The resource object
with key 'Search' was not found. at
System.Web.Compilation.ResourceExpressionBuilder.ParseExpression(String
expression, Type propertyType, ExpressionBuilderContext context) at
System.Web.UI.BoundPropertyEntry.ParseExpression(ExpressionBuilderContext
context) at
System.Web.UI.ControlBuilder.FillUpBoundPropertyEntry(BoundPropertyEntry
entry, String name) at
System.Web.UI.ControlBuilder.AddBoundProperty(String filter, String
name, String expressionPrefix, String expression, ExpressionBuilder
expressionBuilder, Object parsedExpressionData, Boolean generated,
String fieldName, String formatString, Boolean twoWayBound) at
System.Web.UI.ControlBuilder.AddBoundProperty(String filter, String
name, String expressionPrefix, String expression, ExpressionBuilder
expressionBuilder, Object parsedExpressionData, String fieldName,
String formatString, Boolean twoWayBound) at
System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String
attribname, String attribvalue, Boolean mainDirectiveMode) at
System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection
attribs) at System.Web.UI.ControlBuilder.Init(TemplateParser parser,
ControlBuilder parentBuilder, Type type, String tagName, String id,
IDictionary attribs) at
System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser
parser, ControlBuilder parentBuilder, Type type, String tagName, String
id, IDictionary attribs, Int32 line, String sourceFileName) at
System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String
tagName, IDictionary attribs, TemplateParser parser, ControlBuilder
parentBuilder, String id, Int32 line, VirtualPath virtualPath,
Type& childType, Boolean defaultProperty) at
System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String
inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String
text, Encoding fileEncoding) --- End of inner exception stack trace ---
at System.Web.UI.TemplateParser.ProcessException(Exception ex) at
System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding
fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text,
VirtualPath virtualPath, Encoding fileEncoding) --- End of inner
exception stack trace --- at
System.Web.UI.TemplateParser.ParseString(String text, VirtualPath
virtualPath, Encoding fileEncoding) at
System.Web.UI.TemplateParser.ParseReader(StreamReader reader,
VirtualPath virtualPath) at
System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath
virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at
System.Web.UI.TemplateParser.Parse() at
System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies,
VirtualPath virtualPath) at
System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
at
System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider
buildProvider) at
System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath
virtualPath) at
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile) at
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean
allowCrossApp, Boolean allowBuildInPrecompile) at
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean
allowCrossApp, Boolean allowBuildInPrecompile) at
System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at
System.Web.UI.TemplateControl.LoadControl(String virtualPath) at
umbraco.developer.assemblyBrowser.Page_Load(Object sender, EventArgs e)
UmbSearch2 - Error Creating Control
I just installed the UmbSearch2 package and I'm getting the following error on the page where I added the SearchBox macro:
Error creating control (/usercontrols/UmbSearch2/SearchBox.ascx).
Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!
Any ideas?
Thanks.
I'd suggest you raise the question in the UmbSearch2 forum (see their project page) - http://our.umbraco.org/projects/umbsearch2
But for your error you need to see the stack trace of the exception (which Umbraco has hidden), you should be able to find it from the Trace window (append ?umbDebugShowTrace=true to the URL) or you can do the following:
Thanks Slace. I just posted this on the CodePlex forum for umbsearch2. Just for the record, this is the stack trace:
Error reading /usercontrols/UmbSearch2/SearchBox.ascx
The following list shows the Public Properties from the Control. By checking the Properties and click the "Save Properties" button at the bottom, umbraco will create the corresponding Macro Elements.
System.Web.HttpParseException: The resource object with key 'Search' was not found. ---> System.Web.HttpParseException: The resource object with key 'Search' was not found. ---> System.Web.HttpException: The resource object with key 'Search' was not found. at System.Web.Compilation.ResourceExpressionBuilder.ParseExpression(String expression, Type propertyType, ExpressionBuilderContext context) at System.Web.UI.BoundPropertyEntry.ParseExpression(ExpressionBuilderContext context) at System.Web.UI.ControlBuilder.FillUpBoundPropertyEntry(BoundPropertyEntry entry, String name) at System.Web.UI.ControlBuilder.AddBoundProperty(String filter, String name, String expressionPrefix, String expression, ExpressionBuilder expressionBuilder, Object parsedExpressionData, Boolean generated, String fieldName, String formatString, Boolean twoWayBound) at System.Web.UI.ControlBuilder.AddBoundProperty(String filter, String name, String expressionPrefix, String expression, ExpressionBuilder expressionBuilder, Object parsedExpressionData, String fieldName, String formatString, Boolean twoWayBound) at System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode) at System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) at System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at umbraco.developer.assemblyBrowser.Page_Load(Object sender, EventArgs e)
is working on a reply...