Webpart loaded on server not working on local machine working properly Stack trace shared.

Amol Raut asked on March 2, 2017 07:04

Error while evaluating expression: viewmode==“livesite”

CMS.MacroEngine.LexicalAnalysisException: Lexical analysis of the expression failed. Error near: viewmode==“->>livesite” at CMS.MacroEngine.MacroElement.ParseNext(String expression, Int32& index, Boolean supressError, Boolean isParamValue) at CMS.MacroEngine.MacroElement.ParseExpression(String expression, Boolean supressError) at CMS.MacroEngine.MacroExpression.ParseExpression(String expression, Boolean supressError) at CMS.MacroEngine.MacroResolver.ResolveMacroExpression(ResolveExpressionSettings settings)

Message: Could not load type 'CMSWebParts_ProductManagement_ProductListing'.

Exception type: System.Web.HttpParseException Stack Trace: at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) 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.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, 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.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at CMS.ExtendedControls.ControlDefinition.Load(Page page) at CMS.PortalControls.CMSWebPartZone.LoadWebPart(Control container, CMSWebPartZone zone, WebPartInstance part, Boolean reloadData, Boolean isVariant)

Message: Could not load type 'CMSWebParts_ProductManagement_ProductListing'.

Exception type: System.Web.HttpParseException 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)

Message: Could not load type 'CMSWebParts_ProductManagement_ProductListing'.

Exception type: System.Web.HttpException Stack Trace: at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData)

Recent Answers


Petr Svihlik answered on March 2, 2017 08:49

Message: Could not load type 'CMSWebParts_ProductManagement_ProductListing'

Do you use web application or web site type of project? If it's web app, did you rebuild the project?

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.