Error after logging into Admin area


https://forum.kartris.com/Topic382.aspx
Print Topic | Close Window

By saturation - Tue 25 Jan 2011
I am now able to get to the front-end, but when I first login to the admin area, I get the following code in the log file.   What am I missing?   This is the first attempt to login to the backend after a fresh install, and I copied down the information in the install process.

-----------------------------------------------------------------------------
>>     Unhandled Error occurred in Page:http://www.myurl.com/Admin/_CustomPages.aspx?strPage=Default
-----------------------------------------------------------------------------


System.Web.HttpParseException: The base class includes the field 'btnCloseStore', but its type (System.Web.UI.WebControls.LinkButton) is not compatible with the type of control (System.Web.UI.WebControls.Button). ---> System.Web.HttpParseException: The base class includes the field 'btnCloseStore', but its type (System.Web.UI.WebControls.LinkButton) is not compatible with the type of control (System.Web.UI.WebControls.Button).
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers()
   at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree()
   at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath)
   at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)
   at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
   --- 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)
   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.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

==================================================


 
By Medz - Wed 26 Jan 2011
Hi can you try to replace the line in the web.config that says ->

<add tagPrefix="user" tagName="AdminBar" src="~/UserControls/Skin/AdminBar.ascx"/>



with this ->

<add tagPrefix="user" tagName="AdminBar" src="~/UserControls/Front/AdminBar.ascx"/>


and see if it fixes the issue?

Regards,

Medz
By saturation - Wed 26 Jan 2011
I updated web.config as you suggest and now I get the following.   Ideas?

-----------------------------------------------------------------------------
>>     Unhandled Error occurred in Page:http://www.myurl.com/Admin/_Default.aspx
-----------------------------------------------------------------------------
>>     1/26/2011 6:15:44 PM
>>     URL:http://www.myurl.com/Admin/_Default.aspx
>>     98.215.65.169
>>     DESCRIPTION:
System.Web.HttpParseException: The base class includes the field 'btnCloseStore', but its type (System.Web.UI.WebControls.LinkButton) is not compatible with the type of control (System.Web.UI.WebControls.Button). ---> System.Web.HttpParseException: The base class includes the field 'btnCloseStore', but its type (System.Web.UI.WebControls.LinkButton) is not compatible with the type of control (System.Web.UI.WebControls.Button).
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers()
   at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree()
   at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath)
   at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)
   at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
   --- 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)
   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.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
By saturation - Fri 28 Jan 2011
No luck yet resolving this "btnCloseStore" issue--anyone have any ideas?    
By Paul - Fri 28 Jan 2011
Are you sure this is 1.2001 files *and* database?

I've seen similar issues when I've mixed files.

If you set up 1.2001 fresh, make sure when it gets to the database stage that you don't select an existing database (i.e. 1.2000). Because then Kartris will recognize this as an existing db and won't run the new 1.2001 setup script. So you'll end up with 1.2001 files and a 1.2000 database.
By saturation - Fri 28 Jan 2011
Interesting.   I'm on a hosted site, so I have to create a blank database through their UI and then run the install--on which the host will only let me select an existing due to permissions rather then create a new one.  

How can I get around this?   Will running the SQL scripts directly against the DB fix it?
By Medz - Sun 30 Jan 2011
You can try to delete tblKartrisProducts table in your old Kartris database if you want the installation routine to overwrite it with the newer Kartris database. This is the table that is used to identify if the database already contains the Kartris schema. This works for most setup but of course it always safer to start with a blank database. I found that the attached script does a good job in clearing up an existing database. Note that this will delete EVERYTHING from the old database. You can execute this to reset the database before you run the Kartris installation routine.
By saturation - Tue 1 Feb 2011
When I click on your zip file it just takes me back to the forum home page--I can't download it.   Can you repost?
By Paul - Tue 1 Feb 2011
Re your mail about the error

> Parser Error Message: The resource object with key 'AdminBar_ViewBackend'
> was not found.

Can you check your web.config file. Find this tag:

<globalization resourceProviderFactoryType="Kartris.SqlResourceProviderFactory"
  culture="auto" uiCulture="auto" enableClientBasedCulture="true"/>


Make sure it is not commented out. Generally it should be commented out when you start up kartris for the first time, as the installer runs and so there is no db setup yet to grab language strings from. So it will run from a resources file.

The last part of the setup routine should either rewrite your web.config (if permissions allow) or give it to you as a download so you can FTP it to the site. It activates this tag by uncommenting it so that it will pick up language strings from the database.
By Mart - Tue 1 Feb 2011
saturation (01/02/2011)
When I click on your zip file it just takes me back to the forum home page--I can't download it.   Can you repost?


Make sure you're logged in - I get bumped to home page if I'm not, but once logged in I can download it fine.